×

System and method for optimizing dispatch latency of tasks in a data processing system

  • US 6,021,425 A
  • Filed: 04/03/1992
  • Issued: 02/01/2000
  • Est. Priority Date: 04/03/1992
  • Status: Expired due to Fees
First Claim
Patent Images

1. A method of enhancing task scheduling efficiency in a data processing system having a processor, a memory, and a multitasking operating system for managing the processor and the memory, the method comprising the data processing system implemented steps of:

  • providing both a first expedited task scheduling path for tasks and a second task scheduling path for tasks in a scheduler within said multitasking operating system, said first expedited task scheduling path implemented in assembly language and having a code sequence for minimizing state chain linking and unlinking and said second task scheduling path including a timer set to terminate a task upon elapse thereof;

    assigning an execution priority to each of a plurality of tasks within said data processing system for execution on the processor;

    periodically placing selected tasks in a ready-to-run queue within said data processing system;

    periodically selecting a task holding a highest execution priority from among said selected tasks in the ready-to-run queue;

    determining if a task is executing on the processor;

    if a task is executing on the processor, comparing the execution priority of the selected task to the execution priority of the executing task;

    responsive to the selected task holding a higher execution priority or to absence of an executing task, processing the selected task for execution on the processor along said first expedited scheduling path; and

    processing the selected task for execution on the processor along said second scheduling path responsive to the presence of an executing task holding an execution priority higher than the selected task.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×