Computer program, method, and device for distributing resources of computing device
AssigneeSilcroad Soft, Inc.
InventorJEONG IL YOON
Life of this patent
Estimating the term…
Abstract
A computer program stored in a computer readable storage medium is provided. It includes encoded commands, in which when the computer program is executed by one or more processors of a computer system. The computer program allows the one or more processors to perform certain commands for distributing resources of a computing device.
Claims12
A non-transitory computer-readable medium, which includes encoded commands, wherein when a computer program stored in the non-transitory computer-readable medium is executed by one or more processors of a computer system, the computer program which allows the one or more processors to perform the following commands for distributing resources of a computing device, the commands comprising:
- a determination command to determine, by the thread, when a thread intends to refer to a memory region, whether the memory region is a memory region of a global variable;
- a lock information verification command to verify, by the thread, lock information of the memory region of the global variable based on determination of whether the memory region is the memory region of the global variable;
- when the lock information is in a lock setting state, wherein the lock setting state is a state indicating that the memory region is occupied by another thread, a switching command to switch the thread to an active thread or an inactive thread based on a thread state variable without allowing the thread to refer to the memory region;
- and
- a command to change the total number of active threads of the thread state variable, wherein the thread state variable is a variable which records the total number of active threads and the total number of inactive threads when the thread is switched to the active thread and change the total number of inactive threads of the thread state variable when the thread is switched to the inactive thread.
A method for distributing resources of a computing device, the method comprising:
- determining, when a thread intends to refer to a memory region, by the thread, whether the memory region is a memory region of a global variable;
- verifying, by the thread, lock information of the memory region of the global variable based on determination of whether the memory region is the memory region of the global variable;
- switching, when the lock information is in a lock setting state, wherein the lock setting state is a state indicating that the memory region is occupied by another thread, the thread to an active thread or an inactive thread based on a thread state variable without allowing the thread to refer to the memory region;
- and
- changing the total number of active threads of the thread state variable, wherein the thread state variable is a variable which records the total number of active threads and the total number of inactive threads when the thread is switched to the active thread and changing the total number of inactive threads of the thread state variable when the thread is switched to the inactive thread.
A device for distributing resources of a computing device, the device comprising:
- a memory;
- and
- a processor determining, when a thread intends to refer to a memory region, whether the memory region is a memory region of a global variable,
- verifying the lock information of the memory region of the global variable based on the determination of whether the memory region is the memory region of the global variable,
- switching, when the lock information is in a lock setting state, wherein the lock setting state is a state indicating that the memory region is occupied by another thread, the thread to an active thread or an inactive thread based on a thread state variable without allowing the thread to refer to the memory region, and
- changing the total number of active threads of the thread state variable, wherein the thread state variable is a variable which records the total number of active threads and the total number of inactive threads when the thread is switched to the active thread and changing the total number of inactive threads of the thread state variable when the thread is determined as the inactive thread.
Dependencies are inferred from the claim text.