这表示当您从 Web 服务呼叫 Apartment 模型物件时,会发生 执行绪切换 ( Thread Switch )。这会造成轻微的效能冲击,而且如果 Web 服务正在进行模拟,则当您呼叫 COM 元件时,模拟语汇基元将会遗失。
基于80个网页-相关网页
Latency of thread context-switch 线程切换代价测试程序
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.
这要求上下文切换到内核线程,以处理将数据移动到磁盘以及从磁盘移出数据的任务。
应用推荐