Coggle requires JavaScript to display documents.
IPC
ulimit -a
q=Manager().Queue()
mutex
reader_count
wait(writer)
signal(writer)
writer
do { wait(mutex); readcount++; if (readcount == 1) wait(wrt); signal(mutex); // reading wait(mutex); readcount--; if (readcount == 0) signal(wrt); signal(mutex); } while (TRUE);
wait(writer); //... signal(writer);