Barber Shop 1 Barber Customer Queue. 2 C1C2C3 Barber Before Opening Customers waiting in queue.

21
Barber Shop 1 Barber Customer Queue

Transcript of Barber Shop 1 Barber Customer Queue. 2 C1C2C3 Barber Before Opening Customers waiting in queue.

Barber Shop

1

Barber

Customer Queue

2

C1 C2 C3

Barber

Before Opening

Customers waiting in queue

3

C1 C2 C3

Barber

Barber Shop Opens

C2 C3

C1

Barber removes customer from the queue

Barber wakes up customer after the hair cut

4

C2 C3

Barber

Barber Shop Opens

C3

C1C2

5

C3

Barber

Barber Shop Opens

C2C3

6

Barber

Barber goes to sleep

7

C4

Barber

New Customer Comes

Customer wakes up barber

before goes to sleep

C4

8

C5 C6

Barber

New Customer Comes

C4

9

C5 C6

Barber

Barber Shop Closing

C4

Barber should finish all waiting customers

10

C5 C6

Barber

Barber Shop Closing

C4

C7

New customers don’t wait when shop is closing

11

C6

Barber

Barber Shop Closing

C5

C8

New customers don’t wait when shop is closing

12

Barber

Barber Shop Closing

C6

C9

New customers don’t wait when shop is closing

13

Barber

Barber Shop Closed

Barber shop can open again

14

C10 C11

Barber

Barber Shop Closed

New customers wait when shop is closed

15

C10 C11

Barber

Barber Shop Opens

C11

C10

Barber removes customer from the queue

Barber wakes up customer after the hair cut

16

C11

Barber

Closing Before Exiting

C11

17

Barber

Closing Before Exiting

Asking user Yes/No

18

C1 C2 C3

Barber

User No

Customers come and wait

19

C1 C2 C3

Barber

Exiting Before Opening

Clear customer queue

Test 4 (Final)

• 60 points

• 5:00 – 6:52, Tuesday, May 14

• Section 1 and 2: Lab 009

20

Project Phase IV

• 40 points

• Demo by 11:30 AM, Friday, May 17

• Drop solution before demo

• Evaluation email – One hour before demo– for each student– Including yourself

21