×

Context switching with reader-writer locks

  • US 9,798,585 B2
  • Filed: 05/19/2015
  • Issued: 10/24/2017
  • Est. Priority Date: 05/19/2015
  • Status: Active Grant
First Claim
Patent Images

1. A method for scheduling threads for a software application, comprising:

  • terminating, to a first writer thread, an exclusion lock on a program resource;

    activating, in response to terminating the exclusion lock to the writer thread, a plurality of reader threads and a second writer thread from suspension in a thread queue, wherein the thread queue comprises a plurality of suspended threads;

    designating the exclusion lock on the program resource to the plurality of reader threads;

    inserting the second writer thread in a writer queue, wherein the second writer thread automatically obtains the exclusion lock in response to a termination of the exclusion lock to the plurality of reader threads; and

    retrieving, by the plurality of reader threads, first data from the program resource.

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