Reader Writer Problem
Problem Statement
Solution :
do {
wait( wrt ); // wait till no reader is reading the item
// start critical section
write();
// end critical section
signal( wrt ); // notify the rest
}while( True );Last updated