def boss():
"""
Boss will wait to hand out work until a individual workeworker
free since the maxsize of the task queue is 3.
"""
for i in range(1,10):
tasks.put(i)
print('Assigned all work in iteration 1')
for i in range(10,20):
tasks.put(i)
print('Assigned all work in iteration 2')
评论列表
文章目录