把这个插座放在工作队列中。
这就是工作队列api的核心。
对于工作队列中的所有插头角色。
工作队列与服务区域的关系
清单1显示了简单的合用工作队列的示例。
WUQue是从工作队列接收的请求总数。
WUQue is the total number of requests taken from the work queue.
下面我们看一个工作队列api的简单例子。
Let's now continue with a simple example of the work queue API.
工作队列任务可以在编译时或者运行时创建。
Workqueue tasks can be initialized at compile time or at run time.
新的请求传入并滞留在新的服务分类工作队列中。
A new request comes in and stays in the new service class work queue.
下面的例子说明了几个核心的工作队列api函数。
The following example illustrates a few of the core work queue API functions.
工作队列机制是从wlm队列管理器服务继承而来的。
The work queue mechanism is inherited from the WLM queuing manager service.
这些活动像一个工作队列,工作在这里被分配和完成。
The Activities act like a work queue, where work is assigned and completed.
还有一些帮助函数用于清理或取消工作队列中的任务。
There are also a number of helper functions that you can use to flush or cancel work on work queues.
我们首先探讨一下工作队列,然后再看一下任务和变体。
Let's first explore the work queues, and then we'll look at work and the variants.
使用项目,工作队列和强大的脚本可以实现任务自动化。
Tasks can be automated using projects, job queue and powerful scripting.
从StereoCable工作队列中删除此插头。
现在,让我们看一下能够用于工作队列的API函数。
Now, let's look at the API functions that can be found for work queues.
在服务区域处理请求之前,请求被放在WLM工作队列中。
Before the request is processed by the servant region, it's put inside the WLM work queue.
几乎在每个服务器应用程序中都会出现线程池和工作队列问题。
In nearly every server application, the question of thread pools and work queues comes up.
这些函数(见清单8)模拟清单7,只是不需要定义工作队列结构体。
These functions (shown in Listing 8) mimic those from Listing 7, except that you don't need to define the work queue structure.
可以使用全局的内核全局工作队列,利用4个函数来为工作队列定位。
You can use a global kernel-global work queue, with four functions that address this work queue.
线程池的最佳大小取决于可用处理器的数目以及工作队列中的任务的性质。
The optimum size of a thread pool depends on the number of processors available and the nature of the tasks on the work queue.
工作队列提供一个通用的办法将任务延迟到bottomhalves。
Work queues provide a generic method to defer functionality to bottom halves.
通过工作队列与之通信的任务可以由结构体work_struct来定义。
The work to be communicated through the work queue is defined by the work_struct structure.
最后,Query还包含将搜索限制在特定容器(文件夹或工作队列)的选项。
Finally, Query also includes the option to constrain a search to a particular container (folder or work queue).
工作队列是实现延迟的新机制,从2.5版本Linux内核开始提供该功能。
Work queues are a more recent deferral mechanism, added in the 2.5 Linux kernel version.
工作队列可以有比微线程更高的时延,并为任务延迟提供功能更丰富的API。
Work queues can have higher latency than tasklets but include a richer API for work deferral.
成功生成工作队列之后,创建两个任务项目(通过 kmalloc 来分配)。
Upon successful creation of the work queue, you create two work items (allocated via kmalloc).
在如图11所示的面板中,有两个服务区域与同一个服务分类工作队列CBDEF绑定。
In the panel shown in Figure 11, there are two servant regions bound to the same service class work queue, CBDEF.
在如图11所示的面板中,有两个服务区域与同一个服务分类工作队列CBDEF绑定。
In the panel shown in Figure 11, there are two servant regions bound to the same service class work queue, CBDEF.
应用推荐