Software DesignBased on embedded real-time operating systemμC/OS-II example, we made use ofμC/OS-II core expansion interface to edit the free task Interface. We set up a sleep queue and made low power scheduling by it.
软件设计:本文以嵌入式实时操作系统μC/OSⅡ为例,讨论了利用μC/OSⅡ内核扩展接口将空闲任务接口修改;增加了一个睡眠队列,并利用睡眠队列进行低功耗调度,说明利用μC/OSⅡ内核扩展接口实现一个低功耗系统的可行性。
参考来源 - 嵌入式系统低功耗设计方法研究·2,447,543篇论文数据,部分数据来源于NoteExpress
Rather than continuously checking to see if my queue has a message, I provide a sleep function that waits 30 seconds in the event that no message was retrieved.
我没有不断检查看我的队列是否有消息,我提供了一个休眠函数,如没有检索到消息就等待30秒。
h; it puts the calling process to sleep killably in queue until the condition evaluates to true.
它将处于可终止睡眠状态的调用进程置于 queue 中,直到 condition 等于 true。
All threads that go to sleep from calling pthread_mutex_lock on an already-locked mutex will "queue up" for access to that mutex.
对已锁定的互斥对象上调用pthread _ mutex_lock的所有线程都将进入睡眠状态,这些睡眠的线程将“排队”访问这个互斥对象。
应用推荐