System and method for resolving conflicts of re-locking resources
AssigneeHon Hai Precision Industry Co., Ltd.
InventorCheng-Meng Wu
Life of this patent
Estimating the term…
Abstract
A system for resolving conflicts of re-locking resources includes: a plurality of system resources (10), a memory (11), and a central processing unit (12). The memory includes a data storing region (110), a re-lock resolving module (111), and an application storing region (112) for storing a plurality of function applications. The central processing unit is used for reading data from the memory and executing the re-lock resolving module to resolve conflicts of re-locking resources.
Claims12
A system for resolving conflicts of re-locking resources comprising:
- a plurality of system resources;
- a memory comprising a data storing region for recording the system resources, a re-lock resolving module, and an application storing region for storing a plurality of function applications;
- and
- a central processing unit for reading data from the memory and executing the re-lock resolving module to resolve conflicts of re-locking resources.
A computer-based method for resolving conflicts of re-locking resources, the method comprising the steps of:
- setting an identification for each system resource, and setting a corresponding locking function and an unlocking function for each system resource;
- reading a second set which includes system resources needed to execute a function application;
- reading a first set which includes system resources being occupied by other executing function applications before the function application is executed;
- executing exclusive disjunction between the second set and the first set, and recording the results into a third set;
- comparing a bit with the value 1 in the third set with a corresponding bit in the first set, and determining whether the two bits are equal;
- locking the system resource corresponding to the two bits if the two bits are not equal;
- determining whether the system resource corresponding to the two bits has been locked;
- determining whether all the bits with value 1 in the third set have been compared if the system resource corresponding to the two bits has been locked;
- and
- executing the other executing function applications if all the bits with value 1 in the third set have been compared.
A method for resolving conflicts of re-locking system resources of a system, comprising the steps of:
- retrieving information of system resources of a system capable of being locked for executing a plurality of function applications in said system respectively;
- identifying system resources being locked for use by currently-executing function applications out of said plurality of function applications based on said retrieved information;
- identifying system resources needed by a to-be-executed function application out of said plurality of function applications;
- and
- removing request of locking one of said needed system resources for said to-be-executed function application when said one of said needed system resources is identified as being locked for use by said currently-executing function applications.
Dependencies are inferred from the claim text.