Event Concept

Events are used for task synchronization between different streams in the same device. A task can wait for an event. For example, if the task in stream 2 depends on the task in stream 1 and you want to ensure that the task in stream 1 is completed first, you can create an event, insert the event into stream 1 (Event Record task), and insert a task (Event Wait task) that waits for the event to complete into stream 2. Multiple tasks can wait for the same event. For example, the tasks in stream 2 and stream 3 wait for the event in stream 1 to complete. In addition, events can record event timestamps.

The following figure shows a task waiting for an event.

The following figure shows multiple tasks waiting for the same event.