As the worker threads complete their transactions, the next work item in the queue is executed.
在工作线程完成其事务后,将会执行队列中的下一个工作项目。
If an item is found, then the script goes to work adding a record to the queue.
如果找到项目,脚本将把该记录添加到队列。
Each work item is then initialized with INIT_WORK, the work defined, and then enqueued onto the work queue with a call to queue_work.
利用INIT _ work来初始化每个任务项目,任务定义完成,接着通过调用queue _work将任务安排到工作队列中。
For example, you may know that a particular work item will run for a relatively long time and is likely to block all other work items on the local queue.
例如,您可能知道某个特定工作项将运行相对很长的时间,并有可能阻塞本地队列中的所有其他工作项。
If it finds a work item in the local queue of another thread, it first applies heuristics to make sure that it can run the work efficiently.
如果在其他执行绪的本机伫列中发现了工作项目,它会先套用启发式,确定自己能够有效率地执行工作。
If it finds a work item in the local queue of another thread, it first applies heuristics to make sure that it can run the work efficiently.
如果在其他执行绪的本机伫列中发现了工作项目,它会先套用启发式,确定自己能够有效率地执行工作。
应用推荐