That's the core of the work queue API.
这就是工作队列api的核心。
Work queue and servant region relationship
工作队列与服务区域的关系
Let's now continue with a simple example of the work queue API.
下面我们看一个工作队列api的简单例子。
WUQue is the total number of requests taken from the work queue.
WUQue是从工作队列接收的请求总数。
A new request comes in and stays in the new service class work queue.
新的请求传入并滞留在新的服务分类工作队列中。
The Activities act like a work queue, where work is assigned and completed.
这些活动像一个工作队列,工作在这里被分配和完成。
All work on a given work queue can be completed using a call to flush_workqueue.
指定工作队列中的所有任务能够通过调用flush _ workqueue来完成。
The work to be communicated through the work queue is defined by the work_struct structure.
通过工作队列与之通信的任务可以由结构体work_struct来定义。
Number 2: How do I get work to queue up in front of a task?
第2个问题:如何让工作在某个任务前面排队等待?
A task whose unit of work is represented by an element in a queue.
用队列中的一个元素来表示其工作单位的任务。
People sometimes have trouble limiting the amount of work in progress for each queue.
有时候,人们会在限制每个队列的进行中任务数量方面遇到困难。
More servers can be started to process work from the queue.
利用充满队列的时间差,可以启用更多的服务器来处理队列上的请求。
More servers can be started to process work from the queue.
利用充满队列的时间差,可以启用更多的服务器来处理队列上的请求。
应用推荐