摘要
在现代操作系统里,同一时间可能有多个内核执行流在执行,因此内核需要一些同步机制来同步各执行单元对共享数据的访问。尤其是在多处理器系统上,更需要一些同步机制来同步不同处理器上的执行单元对共享的数据的访问。同步通常是为了达到多线程协同的目的而设计的一种机制。在Linux内核中有相应的技术实现,包括原子操作、信号量、读写信号量、自旋锁和等待队列。
In modem operating systems, there may be multiple cores implementation of the stream running of the same time, therefore, the kernel need some synchronization mechanism to synchronize the execution unit of the shared data to access. Especially in the multi-processor systems, but also need some synchronization mechanism to synchronize the implementation of the different processor units of the shared data access.Synchronization is usually multi-threaded together in order to achieve the purpose of a mechanism designed. In the Linux kernel there is a corresponding technology, including atomic operations, semaphores, read-write semaphores, spin locks and Wait queues.
作者
陈友贵
王兆平
CHEN You-gui, WANG Zhao-ping (Changsha Social Work College, Changsha 410000, China)
出处
《电脑知识与技术》
2010年第2期886-888,共3页
Computer Knowledge and Technology
关键词
信号量
自旋锁
原子操作
等待队列
异步信号
semaphore
spin lock
atomic operation
waiting queue
asynchronous signal