==> 在 JohnLinq.bbs@ptt.cc (林約翰) 的文章中提到:
> 一般我們說的Process/Thread都是由kernel的scheduler進行調度的吧。?
> 那麼,kernel內部有那麼多事情要作,
> 又要管理記憶體,又要管理排程,又要管理各種週邊,
> 比如說,有一個kernel module for UART,另一個kernel module for Ethernet,
> 那麼,kernel內部的這些事情,是怎麼切換的呢?
the simple answer is :
The kernel has a kind of job list to save the context, such as CPU status, stack, for all jobs.
The context switch will to do, while the kernel want to
switch one job to another.
To study the OS-related textbook helps you to get more detail.
FYR: (context switch)
http://vrschool.ice.cycu.edu.tw/vrschool/course/os/%A7%EB%BCv%A4%F9/%A7@%B7~%A8t%B2%CE%B2%C4%A5%7C%B3%B9/tsld012.htm
http://en.wikipedia.org/wiki/Context_switch
> 在多核多緒的硬體平台上,這些事情可以由 不同CPU的 不同運算單元 同時處理 嗎?
--
* Origin: ★ 交通大學資訊科學系 BBS ★ <bbs.cis.nctu.edu.tw: 140.113.23.3>
討論串 (同標題文章)
完整討論串 (本文為第 2 之 2 篇):