10.07.2015 Views

Nachos Assignment #1: Build a thread system Tom Anderson ...

Nachos Assignment #1: Build a thread system Tom Anderson ...

Nachos Assignment #1: Build a thread system Tom Anderson ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

CPU chip.) The customer and the bank manager are <strong>thread</strong>s. You areto write two procedures: CustomerArrives() and BankManagerArrives().The procedures must delay until both are present the customer then callsOpenDepositBox(). In addition, the bank manager must wait around untilthe customer nishes, to lock up the bank vault { in other words, thebank manager cannot return from BankManagerArrives() until after thecustomer has returned from OpenDepositBox(). The bank manager canthen take a coee break, while the customer goes o to spend the contentsof the safety deposit box.8

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!