How many type of reader and writer problems? use semaphores to solve these problems , and explain them in detail.
Solution:
- Two types are mentioned in the textbooks.
The first readers - writers problem, requires that no reader will be kept waiting unless a writer has already obtained permission to use the shared ob
ject . in other word , no reader should wait for other readers to finish simply because a writer is waiting .And writers may starve.
The second re