主权项 |
1. A computer-implemented system comprising:
at least one processor; and a data storage operatively associated with the at least one processor, wherein the at least one processor is programmed to execute a global queue manager, wherein the global queue manager is configured to:
receive a request to add a first work item to a constituent work queue, wherein the constituent work queue is described by a plurality of work queue thread properties;write an entry for the first work item to the constituent work queue, wherein the entry for the first work item comprises a reference to first computer program instructions for executing the first work item;determine that a dedicated thread from a dedicated thread pool of the constituent work queue is available to execute the first work item, wherein the dedicated thread is configured to logically link to the constituent work queue and to exclusively execute a work item added to the constituent work queue;execute the first work item with the dedicated thread, wherein thread properties of the dedicated thread match at least a portion of the thread properties of the work queue;receive a request to add a second work item to the constituent work queue;write an entry for the second work item to the constituent work queue, wherein the entry for the second work item comprises a reference to second computer program instructions for executing the second work item;determine that a dedicated thread is not available to execute the second work item;add the second work item to a global queue;determine that the second work item has reached a front of the global queue;determine that a global thread is available;configure the global thread according to the plurality of work queue thread properties to generate a configured global thread; andexecute the second work item with the configured global thread. |