An Approach of Windows Synchronization Mechanism Simulation on Linux
Rui Li, Nanjun Yang, Shilong Ma · 2012
So far open source software has been developed for several decades. Linux has gradually become one of the major operating systems. The issue that Windows application migration can be migrated to Linux is raised. However, there is great difference in the implementation mechanism between Windows and Linux. In this research, we try to build an middle layer which between application and operating system to shield the differences between the underlying operating system for the upper layer application. The middle layer provides unified fixed interface by packaging different operating system calls, so as to make the same source code can be directly translated on different operating systems with no change. It can achieve the migration of the application in source code level. In this paper, we introduce the Simulation Windows Synchronization Mechanism. we build a wait and release mechanism of multi-object, simulate Windows asynchronous procedure call (APC). And also implement Windows wait able timer on Linux. And finally, an experiments is given to test and verify our approach with the dining philosophers problem which is a classic problem in computer science.