Description: Similar to the barbers problem,the program use semaphore to solve the reader/writer problem.Two semaphores are involved:m_h, h,used as a counter and mutex between 2 writers.Main function create 3 reader thread and 2 writer thread.The writer thread has a higher priority by using SetThreadPriority() function
To Search:
File list (Check if you may need any files):
reader&writer.cpp
pudn.txt