×

System for scheduling programming units to a resource based on status variables indicating a lock or lock-wait state thereof

  • US 5,524,247 A
  • Filed: 01/29/1993
  • Issued: 06/04/1996
  • Est. Priority Date: 01/30/1992
  • Status: Expired due to Term
First Claim
Patent Images

1. A computer system comprising:

  • a plurality of program units;

    a shared resource which can be locked by any one of said program units;

    a processor unit including at least one processor means for executing one of said program units;

    control means for holding a status variable indicating that a corresponding one of said program units is in a lock-wait state when said program unit uses said shared resource, and for holding a lock variable indicating whether said shared resource is locked, said status variable holding an address of said lock variable when said corresponding program unit is in said lock-wait state; and

    scheduling means including;

    selecting means for selecting one of said program units as a candidate for allocation of said processor unit;

    a status-variable pointer for holding an address of said status variable held by said control means;

    means for allocating said processor unit to said program unit selected by said selecting means when said scheduling means does not have a status-variable pointer corresponding to said selected program unit;

    referring means for referring to said status-variable pointer to obtain said address of said status variable corresponding to said selected program unit when said scheduling means has a status-variable pointer corresponding to said selected program unit;

    first referring means for referring to said status variable in accordance with said address obtained by said referring means;

    means for allocating said processor unit to said selected program unit when said status variable referred to by said first referring means indicates that said selected program unit is not in a lock-wait state;

    second referring means for referring to said lock variable corresponding to said address held in said status variable referred to by said first referring means when said selected program unit is in a lock-wait state; and

    means for allocating said processor unit to said selected program unit when said lock variable referred to by said second referring means indicates that said shared resource is unlocked.

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