VxWorks中任务阻塞时,栈中保存的任务上下文是什么?
VxWorks中任务阻塞时,栈中保存的任务上下文是什么?
What is the context of a task that is saved on stack when a task is blocked in VxWorks?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你的问题有点令人困惑。当任务被阻塞时,任务的整个上下文都会被保存。从技术上讲,上下文包含在与任务堆栈分离的 TCB(任务控制块)中。
因此,被阻止的任务没有上下文,但它的状态将被挂起。
Your question is a bit confusing. When a task is blocked, the entire context of the task is what is saved. The context is technically contained in the TCB (Task Control Block) which is separate from the task stack.
Thus, a blocked task does not have a context, but it's state would be pended.