×

Detecting deadlocks in interop-debugging

  • US 7,917,909 B2
  • Filed: 05/23/2006
  • Issued: 03/29/2011
  • Est. Priority Date: 05/23/2006
  • Status: Active Grant
First Claim
Patent Images

1. A computer-implemented method comprising:

  • identifying one or more synchronization objects that an application program interface (API) could block on;

    responsive to receiving a debugger request for a helper thread, creating, by the helper thread, a canary thread, wherein;

    the canary thread attempts to take and release the one or more synchronization objects, andthe one or more synchronization objects are takeable by the helper thread in response to the debugger request;

    determining whether the canary thread exits and returns to the helper thread within a predetermined timeout period; and

    ,when the canary thread exits and returns to the helper thread within the predetermined timeout period, determining that the one or more synchronization objects are free to take; and

    when the canary thread does not exit and return to the helper thread within the predetermined timeout period, returning a graceful failure from the helper thread without trying to take the one or more synchronization objects.

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