Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

11.2 Synchronization🔗ℹ

Racket’s synchronization toolbox spans four 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.

  • future semaphores a simple synchronization primitive for use with futures.

    11.2.1 Events

    11.2.2 Channels

    11.2.3 Semaphores

    11.2.4 Buffered Asynchronous Channels

      11.2.4.1 Creating and Using Asynchronous Channels

      11.2.4.2 Contracts and Impersonators on Asynchronous Channels