Patent ID: 6848102

Claim:
A method of accessing a single resource in an operating system, comprising the steps of: incrementing a counter included in said operating system by a discrete value, upon generation of a resource, and using a counter value as generation identifying information; assigning to said resource an identifier composed of address information and the generation identifying information of said resource; storing said generation identifying information at a leading location of said resource; extracting generation identifying information from an identifier transferred as an argument of a system call issued by one user application for accessing said resource; comparing the extracted generation identifying information with the generation identifying information stored in said resource at said leading location; and enabling access to said resource when coincidence is found between both of said generation identifying information, while disabling access to said resource when discrepancy is found between both of said generation identifying information, wherein a given one of a plurality of processes in said operating system using said resource is executed by: acquiring said resource for use by a given one process after disabling abortion and preemption of said given one process; clearing said given one process from a preempt-disabled state and disabling preemption of said given one process after processing for said resource; clearing said given one process from the preempt-disabled state and from an abort-disabled state after said resource has been deallocated from use by said given one process; and executing a forcive termination request issued for said given one process during a period in which said given one process has been in the abort-disabled state.