摘要 |
PURPOSE:To reduce a communication area and also to perform both the information of generation of a task and the process to eliminate a waiting state of the requester task just in a single step, by writing an end code and a waiting state releasing macro to an event control block ECB. CONSTITUTION:When a main task 1 wants the generation of a subtask, this request is written to a communication area ECB-1. A requester task is kept waiting until the generation of the subtask is through. A task production part 2-2 discriminates the task production request and prepares the environment where a new task works to produce a new task. A deciding part 2-3 receives the result of operation from the part 2-2 to decides whether it is normal or not and informs each state value (end code) to a state end informing part 2-4. This state value and the POST macro are written to a communication area ECB-2. Then the waiting state of the task 1 is released.
|