Application of thread pool technology in the traffic monitoring system
Zhang Bo · Applied science and technology · 2011
Radio frequency identification(RFID) can be used by the traffic monitoring system to get traffic information effectively and offer information support for road guidance and management.According to the question that a large number of parallel client service requests need to be accepted by the server of traffic control system,this paper analyzes multi-threaded shortcomings caused by its frequent creation and destruction of threads,and these shortcomings cause overhead wastes and affect the server response.Combined with traits of more connections,discontinuity,concentration and persistence,the server model based on the thread pool technology is offered,the working principle of the thread pool is analyzed and then the framework code of the system is given.Simulation shows that the system is reliable and versatile for solving the parallel operation problem.