t thre ds c n w it for while holding lock. • E ch Condition is tied to one speci ic lock When thre d c lls w it(): • It rele ses the lock • It goes to sleep a a a a a f a a a a a a a a a a a a 4 a When sign led: • It re- cquires the lock • Execution resumes fter w it() a a Class Condition
queue is full → the thre d blocks until sp ce is v il ble t ke() a a a a a a a a a a a a a 30 a • Removes nd returns the he d • If the queue is empty → the thre d blocks until n element is v il ble
Computing Javier Gonzalez-Sanchez, Ph.D. [email protected] Winter 2026 Copyright. These slides can only be used as study material for the class CSC 364 at Cal Poly. They cannot be distributed or used for another purpose. 35