Readers and Writers Two process types need to access shared resource Example: file or database Example: airline reservation system Implemented using two semaphores Ensures mutual exclusion between readers and writers Resource given to all readers Provided no writers are processing (W2 = 0) Resource given to a writer Provided no readers are reading (R2 = 0) and no writers writing (W2 = 0) Understan