Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_databases thread: The elevator alternates.


Message #1 by "Norair K. Bogharian" <norair@d...> on Thu, 25 Jul 2002 00:13:43 +0300 (GMT)
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).


  Return to Index