Coursework to make and use a blocking queue in C++