【正文】
nchronously alter the control flow of a task. Any task or ISR can raise a signal for a particular task. The task being signaled immediately suspends its current thread of execution and executes the taskspecified signal handler routine. Signal Signals asynchronously alter the control flow of a task. Any task or ISR can raise a signal for a particular task. The task being signaled immediately suspends its current thread of execution and executes the taskspecified signal handler routine. Event VxWorks events are means of munication between tasks and interrupt routine, between tasks and other tasks, or between tasks and VxWorks objects. VxWorks objects are referred to as resources such as semaphores and message queue. Event Sending and Receiving Events Events can be sent from a resource to a task, from an ISR to a task, or directly between two tasks. Waiting for Events A task can wait for multiple events from one or more resources. Each source can send multiple events, and a task can also wait to receive only one event, or all events. Event Registering for Events Only one task can register itself to receive events from a resource. If another task subsequently registers with the same resource, the previously registered task is automatically unregistered. Freeing Resource When a resource sends to a task to indicate that it is free, it does not mean that resource is reserved. Event Free Resource Definition Mutex Semaphore A mutex semaphore is considered free when it no longer has an owner and no one is pending on it. Binary Semaphore A binary semaphore is considered free when no task owns it and no one is waitin