And when it does perform a thread switch, it tends to do it in the same place whenever you run the program.
并且当它确实执行了线程切换时,每次运行程序时它往往都在同一个位置进行切换。
One thread asking another for information can cause a thread switch, or one thread preempting another can cause a thread switch.
当一个线程向另一个线程请求信息时,就可能引起线程切换。
This requires a context switch to the kernel thread to handle the task of moving data to and from disk.
这要求上下文切换到内核线程,以处理将数据移动到磁盘以及从磁盘移出数据的任务。
应用推荐