PROJECT 2: READER – WRITER PROBLEM

2) Single writer. You have to program the above scenario using threads (use of pthread library only) and simple mutexes. A pseudo code is given below to help you implement it in C or C++. Note that your code will be compiled using g++ on Bingsuns or Linux. (Detailed submission instructions will be provided later.) typedef int semaphore; ................
................