摘要 |
A system and a method for sharing hardware are provided to efficiently share asynchronous hardware units in a multi threaded computer system. A hardware sharing method includes the steps of: (a) providing a lock_indicator for a data structure in the computer system which executes at least one software process with many threads(20); (b) receiving a request for using hardware resources(24) by one of the threads defined to be the requested thread; (c) determining whether the hardware resource is usable by the requested thread based on the lock_indicator or not; and (d) in the step(c), if the hardware resource is capable of being used, (1) displaying that the hardware resource is not used by setting the lock_indicator under the control of the hardware resource; and (2) sending a signal as a go_indicator to continue the use of the hardware resource.
|