Question: A database is to be shared among several concurrent processes. Some of these processes may want only to read the database (readers), whereas others may
A database is to be shared among several concurrent processes. Some of these processes may want only to read the database (readers), whereas others may want to write to the database (writers). Design an algorithm in pseudocode to guarantee such that: no data inconsistency will occur, the readers are able to read simultaneously, "all the writers are able to write before readers." Algorithm should be implemented with wait() and signal() system calls and semaphore usage is required.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
