| With the opening up of the government data, each department improves the utilization of data by obtaining the data. In this thesis, Vehicle traffic information, stored in toll-stations of Hu Bei province, is now provided to the police sector to play a n important role of investigating and solving the case.In this thesis, data connection system of highway’s main function is listed below: firstly, we collect vehicle traffic information from more then 200 toll-stations of the province; then, we encapsulate every record into a xml file in a specific way of coding; lastly, we send these files to the FTP server on the customer side.We formulate a system solution according to the requirements of the customer and the specification we have to fallow and divide the whole system into four modules, respectively to collect, save, delete and send data. Then, we analyze the software requirements needed for the implementation scheme. ADO interfaces are used to connect database for the corresponding operation. Critical section is used to realize synchronous communication among threads.For the collection module, we create more then 200 collection threads, respectively collecting data from a toll- station. These records are stored in local database correspondly. For the save module, we create two threads, respectively encapsulating every record into a xml file from entry table or exit table in local database and storing them in four directions circularly. For the delete module, we delete every encapsulated record from entry table or exit table in local database circularly. For the send module, we create four send threads, respectively sending files from local direction to the FTP server direction corresponding port on the custumer side.Then we test these modules on a full plan and the results in line with expectation. We also describe all kinds of abnormity, memory every process uses and the deadlock problem we encounter in detail. |