Banker's algorithm is a typical algorithm,used to avoid deadlock in the operating system.This paper mainly discusses the idea of banker's algorithm,and its application to arrange the classroom for elective courses in the University Course Scheduling Syste