期刊文献+

临界区机制剖析与自定义实现 被引量:1

Critical Section Mechanism Analysis and Custom Implementation
在线阅读 下载PDF
导出
摘要 在Windows操作系统扩展过程中,由于自定义调度需要自定义的线程同步,因此需要定制同步机制。经过剖析原有临界区的实现机制,设计实现了自定义临界区。在自定义临界区中,利用内核驱动程序提供调度;用无符号整数原子操作,保证内核对象操作原子性;应用内存映射机制将内核对象地址映射为用户态地址,使得操作可在用户态完成从而提高操作效率。实验结果表明,自定义的临界区可以实现线程同步。 In the process of Windows operating system extended, because using the custom scheduling, it required custom syn- chronization of threads, we need to customize synchronization mechanism. After analyzing the original implementation mechanism of critical section, we design a custom critical section. In the custom critical section design, we provide scheduling by using ker- nel driver development. Atomic operation of unsigned integer is used to guarantee the kernel object atomic operation. Memory mapping mechanism is applied to make kernel object address mapping for the user address, so that the operation can be completed in user mode and raise the operation efficiency. The experimental results show that the custom critical section can achieve the syn- chronization of threads.
出处 《计算机与现代化》 2014年第2期222-225,共4页 Computer and Modernization
关键词 临界区 内存映射 原子操作 优先级 critical section memory-mapped atomic operation priority
  • 相关文献

参考文献11

二级参考文献59

  • 1段中兴,张德运.实时多任务操作系统优先级反转与预防[J].计算机工程与科学,2005,27(2):62-64. 被引量:4
  • 2王欣明,金蓓弘,张昕.用不对称的P/V操作设计并发算法[J].计算机工程与应用,2005,41(12):65-69. 被引量:3
  • 3杜旭,胥海鹏.Linux操作系统调度器实时性能的研究和改进[J].计算机工程,2005,31(10):100-102. 被引量:9
  • 4Richard StevensW,Stephen A Rago.Unix环境高级编程(第2版)[M].尤晋元,等译.北京:人民邮电出版社,2006.
  • 5Granunke G,Thakkar S. Synchronization algorithms for shared- memory multiprocessors [ J ]. IEEE Computer, 1990, 23 ( 6 ) : 60-69.
  • 6Li Z. Compiler algorithms for event variable synchronization [C]//Proceedings of the 5th International Conference on Supereomputing. 1991:85-95.
  • 7Martinez J, Torrellas J. Speculative synctu'onization : Program- mability and performance for parallel codes [ J ]. IEEE Micro., 2003,23(6) :126-134.
  • 8Bacon D F, Konuru R, Murthy C, et al. Thin locks : Feather- weight synchronization for Java [ J ]. ACM SIGPLAN No- tices, 2004,39 ( 4 ) : 583-595.
  • 9IEEE Std 1003.1, Information Technology--Portable Oper- ating System Interface ( POSIX ) Part 1 : System Appli- cation Program Interface(API) [ C Language] [ S].
  • 10David R Butenhof. Programming with POSIX (R) Threads [ M]. Addison-Wesley Professional, 1997.

共引文献40

同被引文献7

引证文献1

二级引证文献1

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部