METHOD, APPARATUS, AND SYSTEM FOR OPERATING SHARED RESOURCE IN ASYNCHRONOUS MULTIPROCESSING SYSTEM
First Claim
1. A method for operating a shared resource in an asynchronous multiprocessing system, comprising:
- receiving, by a hardware resource lock, a lock command sent by a first processor in the asynchronous multiprocessing system; and
ignoring, by the hardware resource lock when being in a locked state, the lock command, and setting, by the hardware resource lock when being in an unlocked state, a state of the hardware resource lock to a state of being locked by the first processor, so that the first processor operates the shared resource.
1 Assignment
0 Petitions
Accused Products
Abstract
Technical effects of a method, an apparatus, and a system for operating a shared resource in an asynchronous multiprocessing system that are provided in the present invention are as follows: A processor in an asynchronous multiprocessing system implements an operation on a shared resource by locking a hardware resource lock, and the hardware resource lock is implemented by a register; in this way, a bus in the asynchronous multiprocessing system does not need to support a synchronization operation, and the processor also does not need to have a feature of supporting a synchronization operation, and is capable of implementing the operation on the shared resource only in a manner of accessing the register, which simplifies the operation on the shared resource by the processor in the asynchronous multiprocessing system, enlarges a selection range of the processor in the asynchronous multiprocessing system, and further improves flexibility of the asynchronous multiprocessing system.
43 Citations
20 Claims
-
1. A method for operating a shared resource in an asynchronous multiprocessing system, comprising:
-
receiving, by a hardware resource lock, a lock command sent by a first processor in the asynchronous multiprocessing system; and ignoring, by the hardware resource lock when being in a locked state, the lock command, and setting, by the hardware resource lock when being in an unlocked state, a state of the hardware resource lock to a state of being locked by the first processor, so that the first processor operates the shared resource. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A method for operating a shared resource in an asynchronous multiprocessing system, comprising:
-
delivering, by a first processor in the asynchronous multiprocessing system, a lock command to a hardware resource lock when the hardware resource lock is in an unlocked state, so as to lock the hardware resource lock, wherein the hardware resource lock is implemented by a register; and operating, by the first processor, the shared resource when the hardware resource lock is in a state of being locked by the first processor. - View Dependent Claims (9, 10)
-
-
11. A hardware resource lock, comprising:
-
a lock state register, configured to provide a state of the hardware resource lock; and a lock register, configured to receive a lock command sent by a first processor in an asynchronous multiprocessing system, ignore the lock command when the hardware resource lock is in a locked state, and set, when the hardware resource lock is in an unlocked state, the state of the hardware resource lock to a state of being locked by the first processor, so that the first processor operates a shared resource. - View Dependent Claims (12, 13, 14, 15, 16, 17)
-
-
18. A processor in an asynchronous multiprocessing system, comprising:
-
a lock unit, configured to deliver a lock command to a hardware resource lock when the hardware resource lock is in an unlocked state, so as to lock the hardware resource lock, wherein the hardware resource lock is implemented by a register; and a resource operating unit, configured to operate a shared resource when the hardware resource lock is in a state of being locked by the processor. - View Dependent Claims (19, 20)
-
Specification