homework5 Version 0 |
|
👤 Author: by arashi 2017-11-16 14:53:39 |
How many type of reader and writer problems? use semaphores to solve these problems , and explain them in detail.
There are two types of reader and writer problems.
Obviously, if two readers access the shared data simultaneously, no adverse affects will result. However, if a writer and some other thread (either a reader or a writer) access the database simultaneously, chaos may ensure.
In the solution to the first readers-writers problem, the reader process share the following structures