当前位置:   article > 正文

OSEK Event mechanism

event mechanism

 

qThe event mechanism

vis a means of synchronization

vis only provided for extended tasks

vinitiates state transitions of tasks to and from the waiting state.

 

qEvents are objects managed by the operating system.

vThey are not independent objects, but assigned to extended tasks.

vEach extended task has a definite number of events. This task is called the owner of these events.

vAn individual event is identified by its owner and its name (or mask).

 

qWhen activating an extended task, these events are cleared by the operating system.

qThe meaning of events is defined by the application, e.g. signallingof an expiring timer, the availability of a resource, the reception of a message, etc.

qThe receiver of an event is an extended task in any case.

vit is not possible for an interrupt service routine or a basic task to wait for an event.

 

77094b36acaf2edd0275a8178f1001e93801934c.jpg

 

4ec2d5628535e5dd55b6442174c6a7efcf1b62b2.jpg

 

转载于:https://www.cnblogs.com/iable/p/4206844.html

声明:本文内容由网友自发贡献,转载请注明出处:【wpsshop】
推荐阅读
  

闽ICP备14008679号