×

Safe language static variables initialization in a multitasking system

  • US 6,901,586 B1
  • Filed: 11/06/2000
  • Issued: 05/31/2005
  • Est. Priority Date: 11/06/2000
  • Status: Active Grant
First Claim
Patent Images

1. A method for sharing a class among a plurality of applications in a multitasking computer system, the method comprising:

  • removing one or more static fields from the class;

    creating a separate copy of the one or more static fields for each of the plurality of applications that utilizes the class, wherein each of the separate copies corresponds to one of the plurality of applications;

    creating one or more access methods for the one or more static fields, wherein the access methods are operable to access the corresponding separate copy of the one or more static fields based upon the identity of the utilizing application; and

    initializing each separate copy of the static fields once, wherein the initializing includes;

    embedding in a class constructor one or more instructions for performing the initializing each separate copy of the static fields; and

    executing the class constructor once for each separate copy of the static fields.

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