首页 | 本学科首页   官方微博 | 高级检索  
     检索      

基于SMP的Linux内核自旋锁分析
引用本文:彭正文,徐新爱.基于SMP的Linux内核自旋锁分析[J].江西教育学院学报,2005,26(3):23-25,28.
作者姓名:彭正文  徐新爱
作者单位:江西教育学院数计系,江西南昌,330029
摘    要:现代操作系统中多支持SMP系统,而在SMP系统中一个必须解决的问题就是多个CPU之间的并发执行问题,Linux也不例外。在Linux内核中,实现并执行的方法有许多,其中包括信号量、自旋锁、原语操作和等待队列等,但对SMP的并发实现则主要采用自旋锁机制。本文通过对Linux2.4.20内核源码分析,使用实例简要说明读写自旋锁在SMP的并发机制及实现。

关 键 词:Linux内核  SMP  自旋锁
文章编号:1005-3638(2005)03-0023-03

The Analysis of Linux Kernel Spinning Lock on SMP
PENG Zhen-wen,XU Xin-ai.The Analysis of Linux Kernel Spinning Lock on SMP[J].Journal of Jiangxi Institute of Education,2005,26(3):23-25,28.
Authors:PENG Zhen-wen  XU Xin-ai
Abstract:The modern operating system supports the SMP system,but the question which must be solved in the SMP system is theone between manyCUPS concurrently carried out,and Linux is not exceptional. In Linux kernel,there are many ways to realize the concurrent execution including the signal quantity,spinning locks,the primitve operation and the waiting queue,and so on,but concurrent realization of SMP mainly uses spinning lock and system.This artuckle through the analysis of Linux 2.4.20 kernel sources code and through examples briefs read - write spinning in the SMPconcurrent mechanism and the realization.
Keywords:Linux kernel  SMP  spinning lock  
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号