摘要
在Linux2.6中,NPTL(nativeposixthreadlibrary)已取代LinuxThreads成为glibc的首选线程库,但是在嵌入式操作系统中普遍使用的基于POSIX标准的线程库仍是LinuxThreads。分析了NPTL线程库的内存管理机制,基于嵌入式操作系统uClinux无MMU的特性,修改了线程栈及uClibc库,实现了NPTL在uClinux上的移植,并在兼容性与效率两方面相对于LinuxThreads线程库进行了测试。
In operating system Linux2.6, NPTL (native posix thread library) replaces LinuxThreads and becomes the first choice of glibc. But in the embedded operating system, LinuxThreads is often used thread library based on POSIX. The characteristics of the memory management in NPTL are analyzed. The migration of NPTL from Linux to embedded operating system uClinux is implemented by making some modifications on the thread stack structure and library uClibc. Then some tests are carried out on compatibility and efficiency comparatively to Linux Threads.
出处
《计算机工程与设计》
CSCD
北大核心
2006年第12期2243-2245,共3页
Computer Engineering and Design