摘要
Nucleus PLUS是新一代的嵌入式实时多任务操作系统内核。在多核操作系统环境下,同一时刻多任务同时访问内核,自旋锁可以很好地处理不同处理器之间存在的同步与互斥问题,但自旋锁如果使用不当,极易产生死锁,造成应用层功能无法实现,所以很有必要对自旋锁展开重点测试。通过对自旋锁机制的研究,提供了一种针对自旋锁的测试方法,避免自旋锁在使用中产生死锁。
Nucleus PLUS is a new generation of embedded real-time multitasking operating system kernel. In the multi-core operat-ing system environment, multiple tasks simultaneously access the kernel at the same time, and the spin lock can handle the synchro-nization and mutual exclusion that exist between different processors. However, if the spin lock is used improperly, that can easily cause a deadlock, and the application layer function can not be realized. So the spin lock test is very necessary. Through the study of the spin lock mechanism, this paper provides a test method for the spin lock to avoid the spin lock in the use of deadlock.
引文
[1]魏振华.嵌入式实时操作系统Nucleus中线程控制部件的实现方法[J].计算机应用研究,2003(4):97-100.
[2]彭正文.基于SMP的Linux内核自旋锁分析[J].江西教育学院学报(综合),2005,26(3):23-28.
[3]张文盛.一种Linux内核自旋锁死锁监测机制的设计与实现[J].合肥学院学报,2012,22(2):31-35.
[4]徐宇柘.Nucleus实时操作系统在继电保护系统中的实时性研究[J].电脑知识与技术,2007(13):3-5.
[5]吴雨俊.实时操作系统Nucleus的中断处理机制研究[J].福建电脑,2012(3):95-96.
[6]王继刚.嵌入式操作系统异常处理框架设计与实现[J].电子技术应用,2017,43(5):60-63,66.
[7]李建军.国产化嵌入式操作系统软件测试方法研究[J].微型机与应用,2016(24):22-24.