RTOS Preemptive Scheduling with Two-Level Priority Bitmap

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing preemptive scheduling methodologies in Real-Time Operating Systems (RTOS) require costly context saving and restoring procedures, which affect scheduling latency, and often necessitate two-level checks for task prioritization, leading to inefficiencies in multitasking and resource allocation.

Innovation Solution

A two-level priority system is introduced, where each task is assigned a kernel priority and a user-defined priority, with a priority bitmap indicating task status, allowing for simplified preemptive scheduling by avoiding context saving in certain scenarios and optimizing task prioritization based on kernel and user-defined priorities.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Loss of time

If existing preemptive scheduling methodologies are used, then task prioritization is achieved, but scheduling latency increases due to costly context saving and restoring procedures

Engineering Contradiction:
Improvescheduling latencyVSAvoidcontext saving and restoring overhead
Core Design Contradiction:
Loss of timeVSProductivity

Solution Approach 1:

The patent extracts the priority management functionality from the traditional scheduling mechanism by introducing a separate priority bitmap data structure. This bitmap independently tracks task priorities without requiring full context saving and restoring operations, thereby reducing scheduling latency while maintaining task prioritization capabilities.

Inventive Principle:
Principle #2Taking out (Extraction)

Solution Approach 2:

The patent changes the parameter representation of task priorities by using a bitmap where each bit represents a task's priority status. This parameter transformation allows for more efficient priority management compared to traditional context-based scheduling, reducing the overhead of context saving and restoring operations.

Inventive Principle:
Principle #35Parameter changes

2Productivity

If traditional single-level priority scheduling is used, then simplicity is maintained, but multitasking efficiency decreases due to two-level checks requirement

Engineering Contradiction:
Improvemultitasking efficiencyVSAvoidscheduling mechanism complexity
Core Design Contradiction:
ProductivityVSDevice complexity

Solution Approach 1:

The patent segments the priority scheduling mechanism into two independent levels: kernel priority (implemented via bitmap) and user-defined priority. This segmentation allows the system to perform efficient priority checks at the kernel level while maintaining user-level scheduling flexibility, thereby improving multitasking efficiency without significantly increasing overall system complexity.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent introduces a second dimension to priority scheduling by adding user-defined priority alongside kernel priority. This dimensional expansion enables more nuanced task management and prioritization, improving multitasking efficiency while the modular structure keeps the complexity manageable.

Inventive Principle:
Principle #17Another dimension (Dimensionality change)

Data Source

PatentUS9606833B2Method and apparatus for providing a preemptive task scheduling scheme in a real time operating system
Publication Date: 2017.03.28 SAMSUNG ELECTRONICS CO LTD
  • US9606833B2 patent drawing
  • US9606833B2 patent drawing
  • US9606833B2 patent drawing

AI summary

Method and apparatuses are provided for providing preemptive task scheduling for a Real Time Operating System (RTOS). A two-level priority is assigned to each task that is created. The two-level priority includes a kernel priority and a user-defined priority. A priority bitmap corresponding to the kernel priority is created. A priority bit in the priority bitmap is enabled. The priority bit indicates a status of a respective task.