嵌入式多核系统的可调优先级自旋锁  被引量:2

Adjustable Priority Spin Lock for Embedded Multicore System

在线阅读下载全文

作  者:王月 李杰 Wang Yue;Li Jie(China Academy of Space Technology,Yantai 264003,China)

机构地区:[1]山东航天电子技术研究所,烟台264003

出  处:《单片机与嵌入式系统应用》2021年第12期31-34,共4页Microcontrollers & Embedded Systems

摘  要:传统自旋锁具有无序竞争的特点,本文对自旋锁机制进行了研究,通过引入优先级和等待次数阈值提出可调优先级自旋锁,保证高优先级任务尽可能多地获得锁,低优先级任务经过一段等待时间后调整优先级、增加获取锁的机会,实现了可调优先级自旋锁并通过实验进行了验证。测试结果表明,可调优先级自旋锁既能够减少传统自旋锁的时间开销,又能保证高优先级处理器核锁申请较快得到响应,验证了可调优先级自旋锁在多核系统中是可用的。The traditional spin locks have the characteristics of disorderly competition.In response to this problem,the spin lock mechanism has been studied.By introducing priority and wait times thresholds,an adjustable priority spin lock is proposed to ensure that highpriority tasks can obtain as many locks as possible.The low-priority tasks adjust their priority after a period of waiting time to increase the chance of acquiring locks.The adjustable priority spin lock is realized and verified by experiments.The experiment test results show that the adjustable priority spin lock can not only reduce the time overhead in the case of traditional spin lock,but also ensure high priority request of the level processor gets a faster response,that verifies the adjustable priority spin lock is available in a multicore system.

关 键 词:多核 互斥 自旋锁 优先级 

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

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

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