Multi-Core Scheduling via Relative Priority Coordination

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Current multi-core systems in RTOS lack an effective method for relative priority-based scheduling across cores, leading to inefficiencies in task management and resource allocation, particularly in asymmetric multiprocessing configurations where tasks on different cores do not share priority relations.

Innovation Solution

A method and electronic device for handling relative priority-based scheduling by determining and scheduling tasks across multiple cores based on relative priority, allowing tasks to follow priority relations with other cores, and using signaling messages for force suspension or preemption to ensure optimal task execution.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If tasks are permanently allocated to separate cores in AMP configurations, then each core has dedicated resource control, but scheduling flexibility and inter-core priority coordination are lost

Engineering Contradiction:
Improveresource controlVSAvoidscheduling flexibility
Core Design Contradiction:
ReliabilityVSAdaptability or versatility

Solution Approach 1:

The patent implements asymmetric multiprocessing by allowing each core to have its own operating system instance while introducing a master-slave relationship for scheduling coordination. The master core maintains global priority information and coordinates with slave cores, creating an asymmetric architecture that combines dedicated resource control with centralized scheduling flexibility.

Inventive Principle:
Principle #4Asymmetry

Solution Approach 2:

The patent introduces a scheduling coordinator acting as an intermediary between cores. This coordinator receives scheduling decisions from the master OS instance and distributes them to slave cores, enabling inter-core priority coordination without requiring permanent task allocation or full SMP complexity.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Adaptability or versatility

If a single OS controls all cores in SMP configurations, then scheduling flexibility is improved, but system complexity and coordination overhead increase

Engineering Contradiction:
Improvescheduling flexibilityVSAvoidsystem complexity
Core Design Contradiction:
Adaptability or versatilityVSDevice complexity

Solution Approach 1:

The patent segments the operating system into multiple instances, with one master OS instance on a designated core and slave OS instances on other cores. This segmentation allows each core to have local OS control while the master instance maintains global scheduling authority, reducing the complexity of full SMP while preserving scheduling flexibility.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent adds a hierarchical dimension to the scheduling architecture by introducing master-slave relationships among OS instances. Instead of flat SMP coordination, the system uses a two-level hierarchy where the master OS instance makes scheduling decisions and slave instances execute them, reducing coordination overhead.

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

3Productivity

If tasks are bounded to specific cores, then resource allocation efficiency improves, but inter-core priority relations and preemption capabilities are lost

Engineering Contradiction:
Improveresource allocation efficiencyVSAvoidinter-core priority coordination
Core Design Contradiction:
ProductivityVSAdaptability or versatility

Solution Approach 1:

The patent performs preliminary actions by having the master OS instance pre-calculate and distribute scheduling decisions to slave cores before task execution. This allows bounded tasks to maintain their core assignments while the system pre-establishes priority relationships and preemption rules across cores, enabling both efficiency and coordination.

Inventive Principle:
Principle #10Preliminary action

Data Source

PatentUS11403138B2Method and electronic device for handling relative priority based scheduling procedure
Publication Date: 2022.08.02 SAMSUNG ELECTRONICS CO LTD
  • US11403138B2 patent drawing
  • US11403138B2 patent drawing
  • US11403138B2 patent drawing

AI summary

A method for handling a relative priority based scheduling procedure in an electronic device. The method includes receiving at least one task, from an application, to access a first core from a plurality of cores in the electronic device. Further, the method includes determining a relative priority with at least one second core from the plurality of cores in the electronic device based on the at least one task. Further, the method includes scheduling the at least one task in the first core from the plurality of cores in the electronic device based on the relative priority.