摘要 |
PURPOSE:To know the release of the global resources of a task and at the same time to reduce overhead by adding a control program to each CPU to release the global resources occupied by the task delivered a termination request. CONSTITUTION:The global resources 31 occupied by a task B are released by a control program 21 of the task B. Thus the program 21 can know the release of the resources 31 of the task B. While a control program 11 is required just to write the 1-bit termination request information into a task control block (TCB) 33 of the task B. At the same time, the program 21 reads the TCB 33 during the task schedule processing and shifts the control to the task termination processing. Thus the overhead can be reduced under such conditions. Then the program 11 knows whether the contents of the TCB 33 are cleared or not during the task schedule processing and therefore knows the release of the resources 31 to reduce the overhead then. |