Files

18 lines
404 B
Plaintext

One rider, three orders: the queue and what frees it
====================================================
three orders accepted, one rider (P1) online
O-0001 rider P1
O-0002 rider null
O-0003 rider null
waiting: [O-0002, O-0003]
O-0001 delivered at minute 20, P1 free again
O-0002 rider P1
O-0003 rider null
waiting: [O-0003]
P3 comes online at minute 20
O-0003 rider P3
waiting: []