摘要 |
<p>PURPOSE:To improve the overhead of an OS by performing the writing to a synchronism table with no intervention of the OS and attaining the execution with any processor in case the numerical value of an entry is equal to 0 with no display of execution. CONSTITUTION:A program is divided into procedures P1-P3 to set the number of entries and the initial value of a synchronism table. The initial values of entries E1 and E2 are set at '0' with the initial value of an entry E3 set at-2 respectively. Then the procedures P1 and P2 are carried out in parallel with each other by processors CPU1 and CPU2. Here the execution displays are added to both entries E1 and E2. When said execution is over, both CPU1 and CPU2 give -1 to the value of the entry E3. Thus the value of the E3 is equal to '0' when the execution is through with procedures P1 and P2. Then the CPU1 or CPU2 the procedure and adds the execution display to the entry E3 when the CPU1 or CPU2 confirms the value '0' of the E3 and the absence of the execution display of the E3.</p> |