Introduction - If you have any usage issues, please Google them yourself
Create a control process, this process contains n threads. Use of these n threads to represent n-reader or writer. Each thread according to the requirements of the corresponding test data file read and write operations. Semaphore mechanism are used to achieve the reader and the writer first priority. Running results show requirements: requires each thread to create, send the application to read and write and began to read and write operations and the end of the read and write operations showed the line of tips to make sure that all deal with the corresponding read and write operations are to comply with restrictions. Readers- read and write operations to write the problem of limited