Semaphore mutex = 1 (in order to protect readcount); Semaphore wrt = 1. /* writer */ do{ wait(wrt); // writing is performed signal( ...
確定! 回上一頁