The core of VTS is the virtual thread scheduler.
VTS的核心是虚拟线程调度器。
This is about the simplest weightless thread scheduler you could choose.
这大概就是您能够选择的最简单的轻便线程调度程序了。
The thread scheduler must dispatch from the head of the highest-priority queue that is not empty.
线程调度程序必须从非空的最高优先级队列的头部开始调度。
Although the thread scheduler, in principle, may switch threads in the middle and run them in different order, it tends not to.
虽然原则上线程调度程序可以在运行的中间切换线程并以不同的顺序运行它们,但是它往往不进行切换。
Dataflow systems focus purely on how the data flows through the system, leaving it up to the thread scheduler to determine how to efficiently make use of multiple cores.
数据流系统仅关注数据如何在系统中流动,交由线程来决定如何有效利用多个核心。
Since the thread scheduler really amounts to instructions to "do a, then do B, then do c, etc." it was not difficult to create an entirely parallel case in a main function.
因为线程调度程序真的等同于“执行a,接着执行b,然后执行c,等等”的指令,所以要在主函数中创建一个完全并行的情况也不困难。
The way the scheduler is set up here causes the whole scheduler to stop when one thread does so.
这里设置调度程序的方法将导致在其中一个线程停止时整个调度程序停止。
The operating system scheduler determines which thread gets control of the mutex next-typically, the reader thread that has waited the longest gets to read the data first.
操作系统调度程序决定哪个线程获得对互斥锁的控制权—通常,等待时间最长的读线程先读取数据。
Because concurrent tasks in unit tests are usually small and few, they usually run to completion before the scheduler switches the thread, unless it is forced to (say, by wait ).
因为在单元测试中的并行任务通常很小同时也很少,在调度程序切换线程之前它们通常一直运行到结束,除非强迫它(也就是通过wait )。
This is called the o (1) scheduler, denoting that the same amount of time is taken to schedule one thread as it is to schedule many.
这种算法就称为o(1)调度程序,这个名字就表示它调度多个线程所使用的时间和调度一个线程所使用的时间是相同的。
Control is not passed to thread1, it's system scheduler who decides which thread to execute.
控制不传递给线程1,它是系统调度程序决定哪个线程执行。
Design and implementation of activity scheduler optimized by thread pool technology.
设计并实现了活动执行调度器和资源分配器。
The end of the sleep period means that the thread is available for the scheduler to run it, but the scheduler may chose to run other threads/processes at that moment.
睡眠周期的结束意味着线程调度程序可以运行它,但是调度器可能选择运行其他线程/进程。
The moving thread and the scheduler thread formed the randomly-moving stimulant platform of multiple objects.
运动线程和调度线程形成多物体的随机运动模拟平台。
It's just a way to communicate with the coroutine scheduler without using global (or thread-local) variables.
它只是一种方法与协同调度通信而不需要使用全局(或局部)变量。
It's just a way to communicate with the coroutine scheduler without using global (or thread-local) variables.
它只是一种方法与协同调度通信而不需要使用全局(或局部)变量。
应用推荐