×

Framework for executing multiple threads and sharing resources in a multithreaded computer programming environment

  • US 7,827,559 B1
  • Filed: 04/24/2006
  • Issued: 11/02/2010
  • Est. Priority Date: 04/24/2006
  • Status: Active Grant
First Claim
Patent Images

1. A method of protecting a shared resource in a multithreaded computing environments where multiple threads of execution (threads) can access said shared resource, said method comprising:

  • associating a first thread of execution (first thread) with a first thread-specific execution context (first Worker) that can effectively provide the execution context for executing operational computer code for said first thread when said first thread effectively activates said operational code for execution;

    associating a first shared resource with a first Exclusion Area (first EA) provided as logical lock to effectively protect said first shared resource from multiple threads that may try to access said shared resource at the same time;

    determining whether said first Worker associated with said first thread is trying to visit (or enter) said first Exclusion Area (first EA), thereby determining whether said first thread is attempting to access said first shared resource effectively protected by said first Exclusion Area (first EA);

    determining whether said first Exclusion Area (first EA) is being visited by another Worker associated with another thread when said determining determines that said first Worker is trying to visit said first Exclusion Area (first EA); and

    not allowing said first Worker to visit said first Exclusion Area (first EA) when said determining determines that said first Exclusion Area (first EA) is being visited by said another Worker, thereby effectively preventing said first thread from accessing said first shared resource when said first shared resource is being accessed by said another thread.

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