Blog posts : "paralell programming"

Producer-consumer problem in C

For my Operating Systems class CSCI360 we had to write the classic Producer-consumer problem in C using semaphores. This is a classic problem/solution to preventing race conditions over a shared resource.  For those of you who don't know what a semaphore is it's simply a variable that acts as a coun…

Read more

1 blog post