Now, let's look at the API functions that can be found for work queues.
现在,让我们看一下能够用于工作队列的API函数。
Work queues provide a generic method to defer functionality to bottom halves.
工作队列提供一个通用的办法将任务延迟到bottomhalves。
Let's first explore the work queues, and then we'll look at work and the variants.
我们首先探讨一下工作队列,然后再看一下任务和变体。
Work queues are a more recent deferral mechanism, added in the 2.5 Linux kernel version.
工作队列是实现延迟的新机制,从2.5版本Linux内核开始提供该功能。
In nearly every server application, the question of thread pools and work queues comes up.
几乎在每个服务器应用程序中都会出现线程池和工作队列问题。
Work queues can have higher latency than tasklets but include a richer API for work deferral.
工作队列可以有比微线程更高的时延,并为任务延迟提供功能更丰富的API。
There are also a number of helper functions that you can use to flush or cancel work on work queues.
还有一些帮助函数用于清理或取消工作队列中的任务。
I also explore the kernel list API, which timers and other work deferral mechanisms (such as work queues) use.
本文还将探索内核列表api,计时器和其他任务延迟机制(比如工作队列)都要使用这个API。
There can be more work queues serving a single service class, but they are separated into different application environments (servers).
可以有更多的工作队列为单个服务分类提供服务,但是要将它们分离到不同的应用程序环境(服务器)中。
All the servant regions are now bound to existing work queues, and no servant region can immediately convert to the new service class work queue.
现在所有服务区域均绑定到现有工作队列,没有任何服务区域能够立即转换到新的服务分类工作队列。
Let's assume your WebSphere Application Server is maintaining the maximum number of servant regions, all bound to different service class work queues.
假设您的WebSphereApplicationServer正在保持最大服务区域数量,这些服务区域全都绑定到不同的服务分类工作队列。
For this sample solution, you only need one ECM In-basket for each of the Work Queues that you created and used when you implemented the process flow.
对于这个样例解决方案,您在实现流程流时创建并使用的每个Work Queue只需一个ECM In - basket。
If the QMPL delay is very high, then you have a shortage of servant region worker threads and cannot process the requests waiting in work queues fast enough.
如果QMPL延迟非常高,则服务区域工作线程不足,无法足够快地处理工作队列中等待的请求。
Tasklets provide a low-latency mechanism that is simple and straightforward, while work queues provide a flexible API that permits queuing of multiple work items.
微线程提供低延迟机制,该方式简单而直接,而工作队列提供复杂的API来允许对多个任务项目进行排队。
When the queuing manager directly sends the work requests with affinity to the servant regions, it will not go through the service class work queues specified for the requests.
当队列管理器将带关联的工作请求直接发送到服务区域时,它将不通过为请求指定的服务分类工作队列。
To learn more about the 2.6 kernel work queue interface, check out this older Linux Journal article from 2003, which provides a good introduction to the API and operation of kernel work queues.
想要学习更多 2.6内核工作队列接口的知识,请参考这篇较老的 2003年LinuxJournal文章,它详细介绍了API和内核工作队列的操作。
WebSphere Application Server is designed to process a large number of parallel short-time tasks, and work queues and thread pools are two components that are used often to handle parallel workload.
WebSphereApplicationServer旨在处理大量的并行短时间任务,工作队列和线程池是两个经常用来处理并行工作负载的组件。
To achieve a high transaction throughput rate, it may be necessary to consider the distribution of work between queues, queue managers, and application server instances.
要获得高的事务吞吐量率,可能需要考虑在队列、队列管理器和应用程序服务器实例之间分配工作。
The business process container and the human task container require a set of queue connection factories, queues, and activation specifications to work.
业务流程容器和人工任务容器需要一组队列连接工厂、队列和激活规范才能工作。
Client response times are not always an indicator that the server is near saturation, because work is buffered in the server queues.
客户端响应时间并不总能反映服务器已接近饱和,因为负载在服务器队列中得到缓冲。
Work stealing can be implemented with standard queues, but using a deque has two principle advantages over a standard queue: reduced contention and reduced stealing.
可以使用标准队列实现工作窃取,但是与标准队列相比,deque具有两方面的优势:减少争用和窃取。
Buildd.rex: This script runs on each guest operating system and accesses the queues on the Web server looking for work.
rex:该脚本运行在每个客户操作系统上并访问Web服务器上的队列来查找工作。
Qlen displays the number of current work requests in the queues ready to be dispatched to a servant region.
Qlen显示队列中已准备好分派到某个服务区域的当前工作请求数量。
Further details on how the queues work are very well covered in the Message Broker documentation.
有关队列工作原理的更多细节已在Message Broker文档中详细介绍。
Buildserver.rex: This script runs on the Web server and maintains the queues that the guest operating systems use to look for work.
rex:该脚本运行在Web服务器上并维护客户操作系统用于查找工作的队列。
WebSphere Application Server deployment is a series of queues, and it's best to only allow the amount of work into a queue for which capacity exists to perform work.
WebSphere应用服务器部署是一系列队列,最好只允许能力范围内的工作量进入队列。
These classes can also work with output queues and spooled files, answer messages for spooled files and do other print related tasks.
这些类还可以处理输出队列和后台打印文件,回答后台打印文件的消息,执行其他打印相关任务。
An Inter-Process Communication (IPC) message queues sample code listed in this article to show you how to work around it.
本文中列出的一个进程间通信(Inter - Process Communication,IPC)消息队列示例代码将向您展示如何来解决此问题。
An Inter-Process Communication (IPC) message queues sample code listed in this article to show you how to work around it.
本文中列出的一个进程间通信(Inter - Process Communication,IPC)消息队列示例代码将向您展示如何来解决此问题。
应用推荐