Producer-Consumer solution for my Operating Systems course