The aim of the study is to simulate actual operation of an elevator. First, it designed elevator scheduling algorithm for control ing operation of the elevator;second, it simulated elevator operation by the use of object-oriented programming language, in which double buffering technology was used to solve the problem of elevator pictures flicker at refreshing; final y, test correctness and rationality of the system.