| Data processing is an important component of the embedded system,and the embedded database is a new direction of Data processing development. The embedded database provides an efficient solution for data processing. Therefore, it is meaningful to do the researches of embedded database in the embedded environment.This paper makes a study of the embedded operating system uC/OS-II, designed and realized a micro-database system and proposed a database transaction scheduling algorithm. Apply the database and the algorithm into the Total Station software, then made a experimental analysis of the performance of the database and the algorithm. The stduies are as follows:1. Made researches and analysis of the embedded operating system uC / OS-II core structure, task management and communication mechanism to prepare for the design of the embedded database and the transaction scheduling algorithm.2. Combined the features of data used in the Total Station System and limited resources of the embedded system, proposed the object of the database, designed the file structure, built the index for the file to speed up the efficiency of data access.3. Based on the task scheduling strategy of the uC/OS-II operating system, this paper proposed a database transaction scheduling algorithm which is based on the affairs of preemptive scheduling strategy. The algorithm judge the preemptive conditions before the transaction is preempted which can reduce the mortality Affairs and additional system consumption.4. Apply the Micro-database and the transaction scheduling algorithm into the T-600 Total Station system and take the "Project Management" module as an example to illustrate the use of a micro-database. Make a comparison between the micro-database and related embedded database in code lines and resource consumption. At last make a comparison of the maximum number of tasks between the transaction scheduling algorithm with the uC/OS-II scheduling algorithm under different circumstances. |