×

Methods and systems to identify and reproduce concurrency violations in multi-threaded programs using expressions

  • US 10,387,296 B2
  • Filed: 08/26/2015
  • Issued: 08/20/2019
  • Est. Priority Date: 06/27/2012
  • Status: Active Grant
First Claim
Patent Images

1. A method to identify which a plurality of threads of a computer program are responsible for causing a concurrency violation, the method comprising:

  • inserting, into a first thread of the computer program, a first instruction to determine a first predicate;

    inserting, into a second thread of the computer program, a second instruction to determine a second predicate;

    inserting, into the computer program, a concurrency violation detector, the concurrency violation detector to cause the concurrency violation to occur when a relationship between the first predicate and the second predicate is satisfied, the inserting of the concurrency violation detector to include globally defining, with a processor, a data type including;

    the first predicate, the second predicate, and an expression defining the relationship as satisfied when the first and second predicates are satisfied in an order specified in the expression; and

    in response to the concurrency violation detector determining the relationship is satisfied during execution of the computer program, identifying the first thread and the second thread as responsible for the concurrency violation.

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