Loading


10.2 Synchronization

Racket’s synchronization toolbox spans three layers:

  • synchronizable events a general framework for synchronization;

  • channels a primitive that can be used, in principle, to build most other kinds of synchronizable events (except the ones that compose events); and

  • semaphores a simple and especially cheap primitive for synchronization.

    10.2.1 Events

    10.2.2 Channels

    10.2.3 Semaphores

    10.2.4 Buffered Asynchronous Channels