Unlock instant, AI-driven research and patent intelligence for your innovation.

Novel RTOS/OS Architecture for Context Switching Without Disabling Interrupts

a context switching and interrupt technology, applied in the field of computer systems software, can solve the problems that the operating system software has failed to properly exploit the advanced interrupt controllers of the interrupt controller

Active Publication Date: 2021-12-23
ARAKJI MAZEN
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Benefits of technology

This solution ensures constant and efficient data processing response times without data loss, even in high-data-rate scenarios, by maintaining interrupt enablement and minimizing context switching overhead, thus addressing the limitations of traditional context switching methods.

Problems solved by technology

Not all computers include such an interrupt controller.
Thus far, operating system software has failed to properly exploit these advanced interrupt controllers.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Novel RTOS/OS Architecture for Context Switching Without Disabling Interrupts
  • Novel RTOS/OS Architecture for Context Switching Without Disabling Interrupts
  • Novel RTOS/OS Architecture for Context Switching Without Disabling Interrupts

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0019]The invention comprises two distinct implementations. In the first, the only added cost is memory. The requirement will at maximum be between 0.5 KB and 1 KB for most systems, but could be far less for simpler systems. In the second implementation, the cost is in the context switching time. This added cost, as will be shown, is quite minimal.

[0020]A key component of the invention is the handling of synchronization primitives such as semaphores and mutexes. For simplicity, only semaphores, which are the most basic task synchronization primitive that all others are built upon, will be discussed. In the first implementation, any semaphore that is set in an interrupt handler, is copied to memory, and handled in a software interrupt that is subsequently activated. Specifically, a reference to the semaphore is copied into a relatively large (0.5 KB-1 KB) circular memory buffer. The software interrupt then proceeds to processes all semaphores that may unblock a task. After task state...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The present invention is a novel RTOS / OS architecture that changes the fundamental way that context switching is performed. In all prior operating system implementations, context switching required disabling of interrupts. This opens the possibility that data can be lost. This novel approach consists of a context switching method in which interrupts are never disabled. Two implementations are presented. In the first implementation, the cost is a negligible amount of memory. In the second, the cost is only a minimal impact on the context switching time. This RTOS / OS architecture requires specialized hardware. Concretely, an advanced interrupt controller that supports nesting and tail chaining of prioritized interrupts is needed (e.g. the Nested Vectored Interrupt Controller (NVIC) found on many ARM processors). The novel RTOS / OS architecture redefines how task synchronization primitives such as semaphores and mutexes are released. Whereas previous architectures directly accessed internal structures, this architecture does so indirectly by saving information in shared buffers or setting flags, and then activating a low priority software interrupt that subsequently interprets this data and performs all context switching logic. The software interrupt must be set as the single lowest priority interrupt in the system.

Description

REFERENCE TO PROVISIONAL APPLICATION AS PER 35 U.S.C. § 119(e)[0001]Title of Invention: Novel RTOS / OS Architecture For Context Switching Without Disabling Interrupts[0002]application No. 62 / 739,242[0003]Filing Date: Sep. 30, 2018FIELD OF THE INVENTION[0004]This invention is within the field of computer systems software, and in particular, real-time operating systems and operating systems. It addresses the ability of such systems to retrieve incoming data from external hardware peripherals, and the time it takes for such systems to begin processing this data. Specifically, the invention relates to how interrupts and context switching are implemented in such systems.BACKGROUND[0005]The ability of a computer to receive data from external hardware sources (peripherals) is a fundamental functionality. In the beginning, computers would simply only ever execute the very next instruction. Within a loop, the computer would check for new data from all peripherals. When a particular peripheral...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(United States)
IPC IPC(8): G06F13/26G06F9/52
CPCG06F13/26G06F9/52G06F9/461G06F9/4812G06F2209/521
Inventor ARAKJI, MAZEN
Owner ARAKJI MAZEN