×

Method and apparatus for serializing access to multithreading unsafe resources

  • US 5,630,136 A
  • Filed: 06/09/1995
  • Issued: 05/13/1997
  • Est. Priority Date: 06/09/1995
  • Status: Expired due to Fees
First Claim
Patent Images

1. A computer-implemented method for synchronizing multithreaded processes within a multitasking computer system so that multiple threads can safely access a multithreading unsafe resource, said method comprising the computer-implemented steps of:

  • (a) creating a baton object for each thread that desires access to a multithreading unsafe resource, each of the baton objects contending for a baton associated with the multithreading unsafe resource, wherein the multithreading unsafe resource may only be accessed by a particular thread when such thread'"'"'s associated baton object holds the baton;

    (b) causing a first one of the baton objects to hold the baton before the thread associated with the first baton object is permitted to access the multithreading unsafe resource;

    (c) subsequent to said causing step (b), permitting the thread associated with the first baton object to access the multithreading unsafe resource; and

    (d) releasing the baton from the baton object once the access by the thread associated with the first baton object is completed,whereby when the first baton object holds the baton, other baton objects are prevented from holding the baton and their associated threads are prevented from accessing the multithreading unsafe resource.

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