Producer-Consumer solution for Operating Systems course