하나의 주문을 기준으로 알고리즘을 구현합니다
- 음식 버튼을 누르면 주문이 들어가고 주문 목록에 출력됩니다
- 순댓국은 요리시간이 1초가 걸리고 해장국은 2초가 걸립니다
- 요리사는
대기중
과요리중
의 상태를 갖습니다 - 요리사는 2명입니다
- 대기중인 요리사가 있을 때까지 기다렸다가 요리를 시킵니다
- 주문 목록에서 제거하고 요리중 목록에 출력합니다
- 요리가 끝나면 요리 목록에서 제거하고 서빙 목록에 출력합니다
- 서버는
대기중
과서빙
의 상태를 갖습니다 - 서버는 2명이며, 한 명은 서빙시간이 1초가 걸리고 다른 한 명은 2초가 걸립니다
- 대기중인 서버가 있을 때까지 기다렸다가 서빙을 시킵니다
- 서빙이 끝나면 서빙 목록에서 제거합니다