摘要 |
PROBLEM TO BE SOLVED: To efficiently operate an application program in a multi-thread environment and to suppress an unnecessary wait time in the synchronous processing of execution right security by preventing the occurrence of dead lock between the control of security of an execution right and that of lock. SOLUTION: After an execution right is secured in one of threads 11 to 13 by a synchronous processing part 22 with respect to a cache resource 15, lock of a transaction operated on the thread, on which the execution right is secured, is secured by an exclusive control part 25 with respect to a resource 18 on a data base 17 corresponding to the resource 15. If lock of the transaction cannot be secured, the exclusive control part 25 reports a failure of lock to the synchronous processing part 22 to make it forcibly abandon the already secured execution right and allows another waiting thread to secure the execution right, thus avoiding the occurrence of dead lock. The synchronous processing related to the execution right is performed in the unit of data of the exclusive control processing related to lock, and plural synchronous processings are executed without bringing about the wait state with respect to data which have no dependence relations in the exclusive control.
|