摘要 |
<p><P>PROBLEM TO BE SOLVED: To reduce the power consumption or waste of processor resources resulted from a spin loop for exclusive control between a plurality of logical or physical processors. <P>SOLUTION: For monitoring of shared variable [A] for exclusive control or the like, LOAD-WITH-LOOKUP instruction for setting the monitoring start momentum of load trial and storage event of an intended shared variable [A] is provided. In a CPU 1, the LOAD-WITH-LOOKUP instruction is issued after failure of acquisition by CAS[A], the storage to lock variable [A] (a release access from the other CPU 2) is monitored, and the CPU is transferred to a rest state by SUSPEND. The CPU 1 is restored with the detection of storability to the lock variable [A] from the other CPU 2 as a turning point. According to this, the re-acquisition of the lock variable [A] can be tried without performing the wasteful spin loop (idle waiting). <P>COPYRIGHT: (C)2006,JPO&NCIPI</p> |