# US 2008/0288949 A1 · Interprocess Resource-Based Dynamic Scheduling System and Method

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2008/0288949 A1
- Document ID: US20080288949A1
- Status: Published application
- Kind: A1
- Application number: 11/749,810
- Filed: 2007-05-17
- Published: 2008-11-20
- Earliest claimed: 2007-05-17
- Assignees: Alcatel Lucent
- Inventors: Subash Bohra; Scott Nam
- Web page: https://patentgrep.com/patent/US20080288949A1

## CPC

- G06F 9/4881: {Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method and system for scheduling tasks in a processing system. In one embodiment, the method comprises processing tasks from a primary work queue, wherein the tasks consume resources that are operable to be released. Whenever the volume of resources that have been consumed exceeds a threshold, the processor executes tasks from a secondary work queue for a period of time. The secondary work queue is comprised of tasks from the primary work queue that can release the resources; the secondary work queue can be sorted according to the volume of resources that can be released.

## Claims

### Claim 1

A method of scheduling tasks in a computer system, comprising:
processing a plurality of tasks from a primary work queue, wherein said plurality of tasks consume interprocess communication resources operable to be released; and
whenever a volume of consumed interprocess communication resources exceeds a threshold, processing tasks from a secondary work queue for a given time period, wherein said secondary work queue comprises tasks from said primary work queue that can release the greatest volume of interprocess communication resources.

### Claim 2 (depends on 1)

The method as recited in claim 1, further comprising monitoring the interprocess communication resources that can be released by each task in said primary work queue.

### Claim 3 (depends on 1)

The method as recited in claim 1, wherein said tasks in said secondary work queue are sorted according to a respective priority value.

### Claim 4 (depends on 1)

The method as recited in claim 1, wherein said tasks in said secondary work queue are sorted according to a respective volume of interprocess communication resources that can be released.

### Claim 5 (depends on 1)

The method as recited in claim 1, wherein said secondary work queue is populated prior to execution from said secondary work queue.

### Claim 6 (depends on 1)

The method as recited in claim 1, wherein said primary work queue is executed according to preemptive priority scheduling.

### Claim 7 (depends on 1)

The method as recited in claim 1, wherein said threshold and said given time period are configurable at system initialization.

### Claim 8

A method for scheduling tasks in a processor, the method comprising:
during execution of tasks from a primary work queue, maintaining a list of resources pending for each task in said primary work queue;
determining, after a first time period, whether a threshold of resources pending has been exceeded; and
if said threshold has been exceeded, populating a secondary work queue with tasks having resources pending, said secondary work queue being sorted according to a given factor, and executing tasks from said secondary work queue for a second time period before returning to the execution of tasks from said primary work queue.

### Claim 9 (depends on 8)

The method for scheduling tasks as recited in claim 8, wherein said resources are interprocess communication resources.

### Claim 10 (depends on 8)

The method for scheduling tasks as recited in claim 8, wherein said given factor is a volume of resources pending for a task.

### Claim 11 (depends on 8)

The method for scheduling tasks as recited in claim 8, wherein said given factor is a priority value associated with a task in said resources pending list.

### Claim 12 (depends on 8)

The method for scheduling tasks as recited in claim 8, wherein each of said resources has an upper limit.

### Claim 13 (depends on 8)

The method for scheduling tasks as recited in claim 8, wherein said threshold, said first time period and said second time period are configurable at system initialization.

### Claim 14 (depends on 8)

The method for scheduling tasks as recited in claim 8, wherein said resources are chosen from at least one of shared memory, semaphores, message queues, message pipes, sockets and signals.

### Claim 15

A system, comprising:
means for populating a first work queue with a plurality of tasks;
means for monitoring resources pending for each of said plurality of tasks;
means for populating a second work queue with tasks identified by said means for monitoring, wherein said second work queue is ordered according to a given factor; and
means for alternating processing of tasks from said first work queue and said second work queue based at least in part upon determining that said resources pending have exceeded a threshold.

### Claim 16 (depends on 15)

The system as recited in claim 15, wherein said means for alternating is operable to process tasks from said first work queue for a first period of time and to process tasks from said second work queue for a second period of time.

### Claim 17 (depends on 15)

The system as recited in claim 15, wherein said means for populating said first work queue uses one of preemptive priority scheduling, weighted round robin scheduling, and weighted deficit round robin scheduling.

### Claim 18 (depends on 15)

The system as recited in claim 15, wherein said means for monitoring is implemented as hardware.

### Claim 19 (depends on 15)

The system as recited in claim 15, wherein said resources are interprocess communication resources and said second work queue is ordered according to a respective volume of interprocess communication resources pending for each of said plurality of tasks.

### Claim 20 (depends on 15)

The system as recited in claim 15, wherein a given task that has received processing time in said first work queue is not used to populate said second work queue.
