可以請問一下,關於多執行緒在恐龍書上,有幾行沒有很了解他的意思,是否有人可以幫
忙解釋一下,謝謝。
Assuming that the threads are part of the same larger process, the kernel
needs to write the program counter, register set and stack of the outgoing
thread to a backing store, and switch to point to the PCB of the incoming
thread (to look at the new values in the PC, register and stack).
when performing a context switch between processes, we must update additional
information including the code block, the file pointers, the memory.
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 114.137.50.202