嵌入式系统线程库同步机制的实现  

Implementation of Thread Library's Synchronization Mechanism in Embedded System

在线阅读下载全文

作  者:江兰帆[1] JIANG Lan-fan (Software College, Fuzhou University, Fuzhou 350108, China)

机构地区:[1]福州大学软件学院,福建福州350108

出  处:《电脑知识与技术》2008年第11期880-881,904,共3页Computer Knowledge and Technology

摘  要:NPTL(本地POSIX线程库)具有较好的性能和稳定性,已成为Glibc的首选线程库。同步是为了达到多线程协同工作目的而设计的一种机制。线程库中同步函数的底层实现大多用汇编语言编写,因此,在将NPTL移植到不同嵌入式硬件平台时,必须重写相关代码。通过引入一个虚拟的锁设备,实现原子操作,进而实现同步函数,最小化硬件平台的相关性,方便地实现不同嵌入式平台上NPTL的同步机制。NPTL(Native Posix Thread Library) have better performance and stability, and have already become the preferred thread library of Glibc. Synchronization is a Mechanism designed to harmonize works between multithread. The bottom implementation of synchronization functions are mostly programmed with assembly language, therefore, related coeds should be rewritten when migrating NPTL to different hard'are platforms. Atomic action can be implemented by introducing a virtual lock device, furthermore, synchronization functions can be accomplished. Relativity of hardware platform can be minimized in this way, therefore, NPTL's synchronization Mechanism can be expediently realized in different embedded platforms.

关 键 词:线程 同步 原子操作 

分 类 号:TP316[自动化与计算机技术—计算机软件与理论;自动化与计算机技术—计算机科学与技术]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象