Method and system for controlling exclusive access to shared resources in computers
AssigneeSanyo Electric Co., Ltd.
InventorKazutaka Kido
Life of this patent
Estimating the term…
Loading patent…
AssigneeSanyo Electric Co., Ltd.
InventorKazutaka Kido
Estimating the term…
A computer system for controlling a process, which obtains an exclusive control module (semaphore X, Y, Z) indicating an exclusive use right of a resources (HDD 13, video buffer 140, audio buffer 150, etc.,) commonly shared by two or more processes (task A, B etc.,), so as to obtain the exclusive use right of the resource corresponding to the exclusive control module obtained by said process, and for controlling the process, when said process releases the exclusive control module, so as to lose the exclusive use right of the resource corresponding to the released exclusive control module, wherein exception handlers in which a procedure for processing a resource exclusively controlled by the corresponding semaphore after the task is abnormally terminated is defined for each of semaphore; and when the task is terminated with the semaphore being obtained, activating the exception handler defined corresponding to the semaphore. Accordingly, in case that the task in the computer system is abnormally terminated with the semaphore being obtained, the exception handler releases the semaphore definitely and safely.
An exclusive control method for a computer system for controlling an obtaining process, which obtains an exclusive control module indicating an exclusive use right of a corresponding resource commonly shared by two or more processes, so as to obtain the exclusive use right of the corresponding resource, and for controlling the obtaining process, when said process releases the exclusive control module, so as to lose the exclusive use right of corresponding resource, comprising the steps of:
A computer system having a plurality of shared resources whose exclusive use rights by a process are indicated by respective exclusive control modules, in which, when a process obtains one of the exclusive control modules, the process is controlled so as to obtain an exclusive use right of the resource corresponding to the exclusive control module obtained by said process, and when the process releases the exclusive control module, the process is controlled so as to lose the exclusive use right of the resource corresponding to the released exclusive control module, comprising:
A computer system having a CPU, storing means which can be accessed by said CPU, a plurality of shared resources whose exclusive use rights by a process processed by said CPU are indicated by respective exclusive control modules, in which, when a process obtains one of the exclusive control modules, the process is controlled so as to obtain an exclusive use right of the resource corresponding to the exclusive control module obtained by said process, and when the process releases the exclusive control module, the process is controlled so as to lose the exclusive use right of the resource corresponding to the released exclusive control module, wherein
Dependencies are inferred from the claim text.