Introduction - If you have any usage issues, please Google them yourself
In Windows2000 environment, create a console process, this process consists of n threads. N thread n readers or write. Each thread according to the requirements of the corresponding test data files (described later) to read and write operations. Reader priority priority issues and write semaphore mechanism.
Reader- the writer to read and write operating limits (including readers, priority, and the writer takes precedence)
A) write- write mutually exclusive: You can not have two writers write
2) read- write mutually exclusive: You can not have a thread while another thread writing.
3) read- read permission: You can have one or more readers.
Readers priority additional restrictions: If you apply for other readers have read the ongoing read operation, the reader can directly read.
Write priority additional restrictions: If a reader application for the read operation has another write access to shared resources in the waiting, the reader must wait until not write in the wait state to