[previous] [up] [next]     [contents] [index]
Next: Global Variable Namespaces Up: Threads and Namespaces Previous: Thread Utilities

Semaphores

A semaphore is a value that is used to synchronize MzScheme threads. Each semaphore has an internal counter; when this counter is zero, the semaphore can block a thread's execution (through semaphore-wait) until another thread increments the counter (using semaphore-post). The maximum value for a semaphore's internal counter is platform-specific (but always ``very large''). MzScheme's semaphores have the usual single-threaded access for reliable synchronization.


[previous] [up] [next]     [contents] [index]
Next: Global Variable Namespaces Up: Threads and Namespaces Previous: Thread Utilities

PLT