asp_databases thread: The elevator alternates.
For simplicity, the elevator and each of the floors have a capacity of one person. The scheduler first verifies that a floor is unoccupied before creating a person to walk onto that floor. If the floor is occupied, the scheduler delays creating the person by one second (thus giving the elevator an opportunity to pick up the person and clear the floor).
|





