Introduction - If you have any usage issues, please Google them yourself
This a improved version of elevator simulation.
The form of command line instruction is ./elevator a b c d e f
a: number of elevators
b: number of floors
c how often people arrive
d: elevator speed: how many seconds can elevators move 1 floor
e: simulation time
f: Random function seed
ALL the arguments must be positive integer.
When the simulation time is up, all the elevators stops after moving at most one floor, then free the passenger in them and exit the threads.