Step 1: when P fails, put process to sleep; on V just wakeup everybody, processes all try P again. Step 2: label each process with semaphore it's waiting for, ...
確定! 回上一頁