The application and development of embedded system is a hotspot in today's computer industry. Among main open source softwares, Linux is quickly entering the real-time controling field with a series of advangages: openning kernel source codes, stable performances, compatibilitiy with UNIX, applicable for multiple processors, great network capabilities, high security and customized kerneThis paper is based on Linux kernel source codes and analyzes the process of scheduling strategy; interrupt handling mechanism, system call, file system and other Linux kernel mechanisms. It analyzes reasons for the defects of Linux's real-time scheduling in embedded applications, and enhances the real-time capability of process scheduling and interrupts system. It proposes an improved least slack first algorithmand reduces the thrashing phenomenons generated by original algorithm on the base of studying some common real-time scheduling algorithms. It studies the interrupt handling mechanism and its defects of real-time capability. Against these shortages, this paper proposes an improvement method of the threaded interrupt.It optimized the Linux kernel cutting mechanism and customizes the Linux kernel for granular cutting on the base of the Linux kernel real-time modification. By analyzing original Linux kernel cutting mechanism, it summarized the source-code based cutting method and propounded an enhanced scheme which cut the Linux kernel automatically based on the application.According to the function set called by application programs; it automatically selects the necessary kernel modules functions for the kernel assembling. It achieved the visualization Linux kernel automated cutting, while this embedded Linux file system can adapt to the embedded device better. |