Changes

Jump to: navigation, search

Computer Science/162/proj1

8 bytes added, 22:11, 4 October 2008
Pseudocode
Return; // conditions for join not satisfied
} else {
add CurrentThread to joinedOnMe.waitingForAccess(currentThread)queue;
isJoined = true;
Sleep the currentThread;
}
Re-enable interrupts;
}
finish(){
// Interrupts have been disabled.
...(existing code)...
Ready the thread in the joinedOnMe threadqueue;
Sleep (existing);
}
 
==Condition.java==
Anonymous user

Navigation menu