Computer and Modernization

Previous Articles     Next Articles

 
Critical Section Mechanism Analysis and Custom Implementation

  

  1.  
    (School of Computer Science, Northwestern Polytechnical University, Xi’an 710072, China)
  • Received:2013-10-12 Online:2014-02-14 Published:2014-02-14

Abstract: In the process of Windows operating system extended, because using the custom scheduling, it required custom synchronization 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 kernel 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 synchronization of threads.

Key words: critical section, memory-mapped, atomic operation, priority

CLC Number: