×

Detecting deadlocks in multithreaded programs

  • US 7,093,262 B2
  • Filed: 07/30/2002
  • Issued: 08/15/2006
  • Est. Priority Date: 07/30/2002
  • Status: Active Grant
First Claim
Patent Images

1. A computer implemented method to be performed by a processing system, the method comprising:

  • monitoring relationships between threads of a multithreaded program and mutually exclusive shared resources, the relationships created by resource operations performed by the threads, the resource operations related to at least one of the mutually exclusive shared resources;

    generating at least one thread descriptor and at least one resource descriptor, based on the monitored relationships between the threads and the mutually exclusive shared resources, wherein the at least one thread descriptor corresponds to a thread in the multithreaded program and the at least one resource descriptor corresponds to a mutually exclusive shared resource; and

    detecting deadlocks based on the relationships between the threads and the mutually exclusive shared resources, wherein said detecting deadlocks comprises;

    constructing a live queue and a dead set based on the at least one thread descriptor and the at least one resource descriptor; and

    checking deadlocks based on the live queue and the dead set.

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