Skip to content

Instantly share code, notes, and snippets.

View seanchen1991's full-sized avatar

Sean Chen seanchen1991

View GitHub Profile
@jlerche
jlerche / notes_little_book_of_semaphores.md
Last active January 22, 2023 18:31
Notes on implementing synchronization techniques using semaphores, in rust, from The Little Book of Semaphores

Link to the book

Semaphore implementation in rust taken from the previously deprecated std-semaphore

Chapter 3

3.3 Rendezvous

If you have two threads, executing the following:

| Thread A | Thread B |