摘要
在当前嵌入式系统应用中,性能问题一直是人们关注的重点.大多数嵌入式Linux应用往往运行在用户态,系统运行时需要经常在内核态和用户态之间反复切换,降低了关键业务的执行效率.以往的研究较少从内核态下的线程库出发来考虑性能优化的实现方法,影响了嵌入式系统的整体性能.对此,本文提出一种适用于嵌入式Linux系统的内核级线程库(LKTL),并且分析了实现的关键技术.LKTL提供了线程管理、信号量同步、内存的动态分配和回收、日志管理以及基本的GNU C库的功能,不但大大提高了应用程序的运行效率,还方便了应用程序的开发和移植.实验表明LKTL能够显著优化嵌入式Linux系统的整体性能.
For embedded system based applications, performance problem is a major concern. However, most of embedded Linux system based applications often run on the user procedures state of the Linux operating system, which result in context switch frequently, and therefore the performance of critical jobs might be redueed. Most of the existing research seldom takes into account the implementation methods of the Linux kernel thread library (LKTL), which impairs the performance guarantee from embedded systems. This paper proposes a novel LKTL applied for embedded Linux systems and analyzes the key technologies of the implementation. LKTL provides the thread management, semaphore synchronization, memory allocation and de-allocation, log management and basic GNU C library. Based on that, LKTL is not only able to boost the performance of the embedded applications prominently, but also to facilitate the applications development for embedded Linux system and migration from other embedded systems to embedded Linux system. Later experimental results indicate that LKTL effectively improves the over all performance for embedded Linux systems.
出处
《小型微型计算机系统》
CSCD
北大核心
2009年第7期1393-1398,共6页
Journal of Chinese Computer Systems
基金
国防预研课题(XXX0601010301)资助