VxWorks中任务阻塞时,栈中保存的任务上下文是什么?

发布于 2024-08-25 04:58:55 字数 35 浏览 4 评论 0原文

VxWorks中任务阻塞时,栈中保存的任务上下文是什么?

What is the context of a task that is saved on stack when a task is blocked in VxWorks?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

眼泪都笑了 2024-09-01 04:58:55

你的问题有点令人困惑。当任务被阻塞时,任务的整个上下文都会被保存。从技术上讲,上下文包含在与任务堆栈分离的 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文