Patent ID: 9569260
Date: 2017-02-14
CPC Classifications: G06F

Claim:
1. A method of prioritizing threads respectively having a priority and executing on a processor of a device, the method comprising: allocating a reservation of a resource to second thread having a second thread priority; responsive to the processor context-switching away from the second thread, recording the reservation of the resource by the second thread on a resource reservation list; responsive to a request for the resource by a first thread having a first higher priority that is higher than the second thread priority, consulting the resource reservation list to detect a resource conflict comprising the reservation by the second thread while a third thread having a third thread priority below the first thread priority and above the second thread priority, such that executing the third thread causes a delay of execution of the second thread; responsive to the resource conflict, elevating the second thread priority above the third thread priority; and executing the threads on the processor according to the priorities of the respective threads, including selecting the second thread for execution over the third thread responsive to the elevating of the second thread priority above the third thread priority.