摘要 |
PURPOSE:To set locks which are different by threads by detecting access which violates a lock as to access to shared data by using a shared data identifier. CONSTITUTION:In a process, plural threads perform transaction processes in parallel. In the transaction processes, the shared data in a secondary storage are mapped in a thread characteristic area in a virtual space, and referred to and updated to perform exclusive control by a two-phase lock. Then an identifier management part 1 maps the shared data in the thread characteristic area and converts the secondary storage addresses of the shared data into virtual addresses. Further, a lock setting part 2 sets the protection mode of a mapped page in an MMU 10 as the lock of the shared data in the virtual space and detects the violating access as an exception of the MMU. Then a lock arbitration part 3 arbitrates requests of locks to the same shared data mapped in different thread characteristic areas.
|