Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pintOS 探索之旅(7) main thread | xy 的小博客 #6

Open
lwshowl opened this issue Feb 16, 2022 · 1 comment
Open

pintOS 探索之旅(7) main thread | xy 的小博客 #6

lwshowl opened this issue Feb 16, 2022 · 1 comment

Comments

@lwshowl
Copy link
Owner

lwshowl commented Feb 16, 2022

https://lwshowl.github.io/2022/02/16/pintos7/#more

thread_init()进入 C语言 之后,每一个进程都需要一个上下文,此时 main 函数应该就是我们 main thread 的上下文,也就是说我们已经在上下文之中了,此时需要做的就是将 main 函数封装在 thread 之中,thread_init 完成了以上任务

@lwshowl
Copy link
Owner Author

lwshowl commented Feb 16, 2022

欢迎指正

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant