diff --git a/threads/synch-sem.cc b/threads/synch-sem.cc index 8993b4b..5081576 100755 --- a/threads/synch-sem.cc +++ b/threads/synch-sem.cc @@ -153,7 +153,7 @@ bool Lock::isHeldByCurrentThread() Condition::Condition(char* debugName) { name = debugName; - sem = new Semaphore("LockSemaphore", 1); + sem = new Semaphore("LockSemaphore", 0); inte = new Semaphore("InterruptSemaphore", 1); blockNum = 0; }