
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

ECS145 Scripting Languages - Spring 2005 Name:
import pdb
pdb.set_trace()
No
lock = threading.Lock() evt = threading.Event()
lock.acquire() while not an_item_is_available(): evt.wait() get_an_available_item() lock.release()
lock.acquire() make_an_item_available() evt.set() lock.release()