System for controlling context switch of deferred requests using counter and flag setting of thread accessing shared resource or entering code region
Abstract
In an embodiment of the invention, a method for a memory-mapped lazy preemption control, the method includes: incrementing a counter value if an operating system attempts to involuntarily context switch out a thread and fails to context switch out the thread because the thread has a flag set; checking a counter value to determine a degree of abusiveness of a thread; and based upon the degree of abusiveness, determining if a voluntary contact switch out should be performed or should not be performed on the thread.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 8 · Forward citations: 9.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method comprising: receiving a first operating system call from a thread, the operating system call including a location identifier for a flag, the flag being set to a first state by the thread when the thread is at least one of executing a code region or is accessing a shared resource; deferring a first request to context switch the thread when the flag is in the first state; incrementing a counter value with an operating system when the first request is deferred; deferring a second request to context switch the thread when the flag is in the first state; incrementing the counter value with
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗