Description: Create a console process, this process contains n threads, n-reader or writer to represent with n threads, each thread according to the corresponding test data files (followed by description) the requirements of the read and write operations, semaphores mechanisms, respectively reader priority and the write priority reader- writer problem. Reader- the writer to read and write operating limits (including the reader priority and priority to the writer): write- write mutually exclusive, ie can not have two writers write. Read- write mutex that is not at the same time there is a thread in another thread writing. Read- read permission, which can have one or more readers. Readers priority additional restrictions: If a reader application for the read operation has been another reader being read, the reader can directly read. Write priority additional restrictions: If a reader application for the read operation has been another writer in waiting for access to shared resources, the reader must
To Search:
File list (Check if you may need any files):
Reader-Writer.doc