Patents
US 7,313,797 B2#4238948 Most CitedExpiredUnited States (USPTO)Utility

Uniprocessor operating system design facilitating fast context switching

20Forward Citations (#4238948 Global)
1.1/yrCitation Velocity (#6099549 Global)
3.26Citation PageRank (#6610398 Global)
19Prior Art Cited
1Claims (1 Indep. · 0 Dep.)
0Drawings / Sheets

Abstract

A task stack and a context pointer in a task control block (TCB) are implemented to provide more efficient context switching. Additionally, multiple routines each of which saves or restores a certain combination of volatile registers is implemented. A task can store in its task control block a routine identifier to select from the multiple routines a set of routines for saving and restoring volatile registers during context switching. On the occurrence of an event that may lead to a context switch a scheduler selects based on the routine identifier a routine that only saves registers used by the task, thereby, reducing execution overhead. The registers are saved on the task stack and a context pointer to the registers is saved in the TCB. In the event a context switch is necessary, it is not necessary to copy the registers to the TCB because the context pointer is in the TCB. A non-volatile register indicator that indicates whether non-volatile registers are used is stored in the task control block. The non-volatile registers are only saved if used, also reducing execution overhead. Furthermore, a storage area is implemented for saving task context for the task when it is interrupt

Interactive Citation Constellation Global Citation Ranking

Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 19 · Forward citations: 20.

Claims (1 — 1 Independent, 0 Dependent)

  1. Claim 1Independent Claim

    A method being stored as a set of instructions on a computer-readable medium, the set of instructions being executable by a processor to perform the method, the method comprising: receiving an event leading to a context switch; determining whether a user task uses first task context information by examining a first task context information indicator in a task data structure associated with the user task; storing the first task context information in a temporary memory for use following the context switch only if the user task uses the first tank context information; setting a context pointer s

Technical Overview & Description

Full multi-page specification text is archived at the issuing office. Read complete official specification ↗

References Cited — Backward Prior Art (19)

PatentTitleYearCitations
US 4,296,470 ALink register storage and restore system for use in an instruction pre-fetch micro-processor interrupt system1981103
US 4,338,662 AMicroinstruction processing unit responsive to interruption priority order198212
US 5,390,329 AResponding to service requests using minimal system-side context in a multiprocessor environment1995124
US 5,440,703 ASystem and method for saving state information in a multi-execution unit processor when interruptable instructions are identified199522
US 5,475,822 AData processing system for resuming instruction execution after an interrupt and method therefor1995123
US 5,872,909 ALogic analyzer for software1999219
US 5,872,963 AResumption of preempted non-privileged threads with no kernel intervention1999165
US 5,987,495 AMethod and apparatus for fully restoring a program context following an interrupt199976
US 6,128,641 AData processing unit with hardware assisted context switching capability200070
US 6,205,468 B1System for multitasking management employing context controller having event vector selection by priority encoding of contex events200152
US 6,243,736 B1Context controller having status-based background functional task resource allocation capability and processor employing the same200143
US 6,260,150 B1Foreground and background context controller setting processor to power saving mode when all contexts are inactive2001103
US 6,374,286 B1Real time processor capable of concurrently running multiple independent JAVA machines2002232
US 2003051123 A1Microprocessor—15
US 6,553,487 B1Device and method for performing high-speed low overhead context switch200326

Non-Patent Literature (5)

  • Ball, Tony. "Real Time Operating System Performance Issues and Techniques with RISC." IEEE. Nov. 1991.
  • Davidson, Jack W. et al. "Methods for Saving and Restoring Register Values across Function Calls." Feb. 1991.
  • Hsiao, Shawn et al. "Context Switching and Scheduling in C-" May 11, 2000.□□.
  • IBM Technical Disclosure Bulletin. "Deterministic Context Switching of Registers." Nov. 1, 1989.
  • Snyder, Jeffrey S. et al. "Fast Context Switches: Compiler and Architectural Support for Preemptive Scheduling." 1995.