释义 |
thread 线程,调度单位 The basic unit of execution in the sense that only one thread can be executedat a time by the CPU. The operating system uses the hardware facilities of the CPU to maintain the thread’s context when it is preempted. This context is restored when the thread is redispatched. 在CPU一个瞬时只能处理一个线程的意义上,线程是基本执行单位。当它在执行中被别的线程优先占有CPU时,操作系统利用CPU的硬件设 施保持它的现场;当它重新得到调度时,该现场被恢复。 |