| As an excellent free operating system, Linux has its own strength. Many foreign telecommunication equipment manufacturers have paid close attention to Linux and developed telecommunication equipments and smart mobile phones based on the embedded Linux.After this long time development, Linux has enough qualifications to be applied to the large-scale telecommunication equipments.Now, the R&D of embedded Linux has important significance to lower the cost and improve the security level of products. This paper analyzed the basic concepts of embedded systems and systematically introduced the characteristics of Linux as embedded operating system, such as real-time, network and GUI support etc. With research of the kernel mechanism of embedded Linux, we found the transition between user mode and kernel mode involved in system calls would increase the system cost and affect the system performance. Based upon this discovery, this paper proposed the KTH library in the Linux kernel mode to enable applications to run in kernel mode.It also explained the function and performance that the kernel thread library should achieve, as well as the system structure of KTH.Then, this paper introduced and analyzed the design and implementation of the KTH modules finished by me, which include the main data structure, algorithm and function flowchart. In the end, we tested the performance of KTH with two benchmarks which are thread processing speed and semaphore processing speed. |