| As campus security has become a great concern of the community, it is becoming increasingly important to enhance the capability of quick response for campus emergency. However, the current widely applied campus remote video surveillance systems are not capable of automatic alarming and real-time commanding. The city emergency response system can meet the needs but is too bulky and complex to use in campus. Therefore, it has great significance for campus security to research and develop the campus emergency response system for local primary and secondary school.In this thesis, a management software is developed as the core of the campus emergency response system, which integrated real-time alarming, video surveillance, sound and light warning and voice intercom as a whole emergency response mechanism, providing an effective solution for handling campus emergencies timely and properly. Through integrated management and scheduling of peripheral emergency equipment, a program is designed based on the hierarchical structure of Department of Education, school security office and security guard duty room for real-time transmission and handling of alarms, which achieves the real-time monitoring, coordinate handling and instructing for campus risks. To meet the needs of video surveillance, an efficient and reliable media scheduling scheme is designed using thread pool and thread synchronization technology, which is equipped with split-screen real-time monitoring and video linkage functions, and serves as a foundation for system’s routine safety monitoring and alarm information visualization. The proposed management software also supports third-party alarm platform access. Parallel processing is used to handle the high-volume warning messages that may arise by combining priority queue and thread pool technology with database cache mechanism. Under the simulation test environment, transmission and processing of alarm messages at the degree of ten thousands magnitude costs 1.325 seconds on average, which meets the need of real-time alarm processing, and improves the scalability of system. |