An exercise in resource allocation, thread synchronization, semaphores and mutexes -- with animation!
Compile with make clean && make Run as ./nc
This project was done as an assignment for CSC4320 Operating Systems at Georgia State University. I used the GNU ncurses for animation.
Here we spawn 20 threads and let them pick random columns. Then we have little squares marching down the screen. There is, however, a mutual exclusion zone! Only one thread at a time is allowed in here.