×

Techniques for synchronizing processing of at least two code threads

  • US 8,752,057 B1
  • Filed: 06/30/2008
  • Issued: 06/10/2014
  • Est. Priority Date: 06/30/2008
  • Status: Active Grant
First Claim
Patent Images

1. A method for synchronizing processing of at least two code threads comprising:

  • providing a first thread executing in user space;

    providing a second thread executing in kernel space; and

    providing a global mutex lock for synchronizing processing between said first thread and said second thread wherein one of said first thread and said second thread holds the global mutex lock and is identified as a current owner of the global mutex lock, and the other of said first thread and said second thread requests the global mutex lock and is blocked until the current owner of the global mutex lock releases the global mutex lock, wherein said global mutex lock is held by at most one thread at a point in time and is identified as the current owner, wherein said first thread initiates creation of the global mutex lock and a global mutex structure associated with the global mutex lock, the global mutex structure including a dirty indicator which is set to dirty when the current owner terminates abnormally prior to releasing the global mutex lock thereby terminating while holding the global mutex lock, wherein said dirty indicator is set to indicate that the current owner terminated abnormally to notify a subsequent owner of the global mutex lock that a resource previously used by the current owner may be left in an invalid or inconsistent state.

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