源码简介: |
考虑一个很繁忙的小型飞机场,这个飞机场只有一条飞机跑道。在每个单位时间内,只有一架飞机可以着陆,或者只有一架飞机可以起飞,但不允许同时着陆和起飞。飞机的到达和起飞时随机的,因此任何给定的时刻,飞机跑道可能空闲,或者可能有一架飞机正在着陆或起飞,并且可能有若干架飞机在等待着陆或者起飞。编写一个程序模拟这一情形。-Consider a very busy small airport, the airport has only one runway. In each unit of time, only one aircraft can be landed, or only one aircraft can take off, but not at the same time landing and take-off. Aircraft landing and take-off random, so any given moment, the aircraft and the runway may be idle, or may have an aircraft is landing or taking off, and may have a number of aircraft waiting for takeoff or landing. Procedures for the preparation of a simulation of this situation.
|