×

Affinity scheduling of processes on symmetric multiprocessing systems

  • US 5,506,987 A
  • Filed: 03/24/1994
  • Issued: 04/09/1996
  • Est. Priority Date: 02/01/1991
  • Status: Expired due to Term
First Claim
Patent Images

1. A method of affinity scheduling and context switching processes to be run on the CPUs of a multiprocessing system, said method comprising the steps of:

  • (a) assigning new processes to the CPUs of a multiprocessing system in accordance with a predetermined routine to create an initial affinity between said new processes and the CPUs to which said new processes are assigned, each of said processes having a priority value for context switching purposes whose magnitude is based on the nature of the process;

    (b) interrupting the processes running on the CPUs of said multiprocessing system at regular clock intervals;

    (c) during an interrupt, for each CPU interrupted, determining if any assigned processes having a priority value above a predetermined assigned process threshold are assigned to the CPU;

    (d) during said interrupt or a subsequent interrupt, for each CPU interrupted having assigned processes with a priority value above said predetermined assigned process threshold, determining if any process assigned to the CPU has a priority value that is higher than said predetermined assigned process threshold and higher than the priority value of the process running when the CPU was interrupted; and

    (e) upon returning from said interrupt, switching the context of the process running on each CPU having an assigned process with a priority value above said predetermined assigned process threshold whose priority value is higher than said predetermined assigned process threshold and higher than the priority value of the process running when the CPU was interrupted to the process having the higher priority value.

View all claims
  • 2 Assignments
Timeline View
Assignment View
    ×
    ×