Exercise

Enhance your understanding by getting hands-on practice ​with this exercise on semaphores!

We'll cover the following

In this exercise, we’ll use semaphores to solve some well-known concurrency problems. Many of these are taken from Downey’s excellent “Little Book of Semaphores", which does a good job of pulling together a number of classic problems as well as introducing a few new variants; interested readers should check out the Little Book for more fun.

How to run?

Included in this exercise are a number of skeletal code fragments, which you can fill out to solve various synchronization problems. Check them out!

Get hands-on with 1200+ tech skills courses.