EP1514181A2 - Aufgabenzuteilung in prioritätspreemptiven echtzeitbetriebssystemen - Google Patents

Aufgabenzuteilung in prioritätspreemptiven echtzeitbetriebssystemen

Info

Publication number
EP1514181A2
EP1514181A2 EP03718943A EP03718943A EP1514181A2 EP 1514181 A2 EP1514181 A2 EP 1514181A2 EP 03718943 A EP03718943 A EP 03718943A EP 03718943 A EP03718943 A EP 03718943A EP 1514181 A2 EP1514181 A2 EP 1514181A2
Authority
EP
European Patent Office
Prior art keywords
task
context
function
class
attributes
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
EP03718943A
Other languages
English (en)
French (fr)
Inventor
David K. Lake, Jr.
Nicholas Merriam
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Livedevices Ltd
Original Assignee
Livedevices Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from GB0209800A external-priority patent/GB2388213A/en
Application filed by Livedevices Ltd filed Critical Livedevices Ltd
Publication of EP1514181A2 publication Critical patent/EP1514181A2/de
Withdrawn legal-status Critical Current

Links

Classifications

    • G—PHYSICS
    • G06—COMPUTING OR CALCULATING; COUNTING
    • G06F—ELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00—Arrangements for program control, e.g. control units
    • G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46—Multiprogramming arrangements
    • G06F9/461—Saving or restoring of program or task context
    • G—PHYSICS
    • G06—COMPUTING OR CALCULATING; COUNTING
    • G06F—ELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00—Arrangements for program control, e.g. control units
    • G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46—Multiprogramming arrangements
    • G06F9/48—Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806—Task transfer initiation or dispatching
    • G06F9/4843—Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881—Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues

Definitions

  • the present invention relates to optimisation or at least improvement (in time and space domains) of task dispatch in priority pre-emptive real-time operating systems that consist of a plurality of different types of tasks.
  • Embodiments of the present invention are of particular relevance to the technical field of embedded devices and the control thereof, since these generally use static priority-based scheduling given the limited range of functions required.
  • Each task is described to the configuration tool including its name, priority and entry function. From this the configuration tool constructs a set of data structures for each task that include the priority and the entry function.
  • the function inside the operating system kernel that manages task switching is called the dispatcher. This is responsible for saving any necessary context, invoking the entry function of the task that is to be activated, and then restoring the previous context when the task terminates.
  • Applications built using such operating systems typically consist of a plurality of concurrent tasks.
  • the present invention relates to minimising, or at least reducing, the amount of context that needs to be saved when making a context switch between any two tasks.
  • a generic dispatcher function will tend to be large and slow, since it needs to be able to deal with any type of task and may need to save and load any number of contexts or resources.
  • a method of improving operating system efficiency in which tasks managed by the operating system are organised into a plurality of classes, each class being defined by predetermined task attributes, and wherein a separate dispatcher function is generated for each class.
  • a computing device having an operating system, wherein tasks managed by the operating system are organised into a plurality of classes, each class being defined by predetermined combinations of task attributes, and wherein there is provided a separate dispatcher function for each class.
  • an operating system for a computing device managing a plurality of tasks each having various attributes, the tasks being organised into a plurality of classes each defined by a unique combination of task attributes, wherein a separate dispatcher function is provided for each class.
  • a configuration tool for use with an operating system managing a plurality of tasks each having various attributes, wherein the configuration tool is operable to organise the tasks into a plurality of classes each defined by a unique combination of task attributes.
  • the tasks are organised into the various classes off-line.
  • each dispatcher function may be streamlined to the particular attributes for improved efficiency, rather than the operating system relying on a generic dispatcher function that needs to be able to deal actively with any task having any particular set of attributes.
  • each task will have an associated data structure that describes the task and its attributes.
  • the data structure advantageously contains a reference not only to the entry function of the task (as is usual in existing operating systems), but also to the dispatcher function dedicated to that class of task. This enables each task to be directed to the dispatcher function appropriate to its class.
  • a relatively small generic "main" or "head” dispatcher function which can individually call any of a plurality of "sub" dispatcher functions, each dedicated to dispatching tasks having a unique predetermined set of attributes.
  • prior art systems such as disclosed in US 5,799,188 do not provide any off-line analysis, do not use (statically configured) subdispatcher functions and do not optimise based on static properties. Instead, such systems make a (dynamic) conditional choice based on flags, and make no use of off-line tools to statically determine appropriate run-time behaviour.
  • a "Class C” task that only needs to save and restore floating point context, and does not need to create a jump_buf structure because the task always terminates at the end of its entry function, might have the subdispatcher function:
  • OS_Save_FP_Context () ; OS_Set_Interrupt_Priority (t) ; OS_Task_To_Dispatch->entry () ; OS_Set_Interrupt_Priority (KERNEL) ; OS Restore FP Context ( ) ;
  • OS_Save_DSP_Context () ; 10 OS_Save_FP_Context () ;
  • OS_Set_Interrupt_Priority(KERNEL) OS_Restore_DSP_Context () ; OS Restore FP Context ();
  • typedef struct ⁇ void (*dispatcher) (void) ; 30. void (*entry) (void) ; int priority; ⁇ Task_control_block;
  • a further optimisation, or at least improvement, of this mechanism can be made such that if a task needs no extra context to be loaded or saved, the dispatcher function dedicated to the class of that task can be optimised to be its own entry function.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
EP03718943A 2002-04-30 2003-04-16 Aufgabenzuteilung in prioritätspreemptiven echtzeitbetriebssystemen Withdrawn EP1514181A2 (de)

Applications Claiming Priority (5)

Application Number Priority Date Filing Date Title
GB0209800 2002-04-30
GB0209800A GB2388213A (en) 2002-04-30 2002-04-30 Improvements relating to task dispatch in priority pre-emptive real-time operating systems
US10/146,239 US20030204639A1 (en) 2002-04-30 2002-05-14 Task dispatch in priority pre-emptive real-time operating systems
US146239 2002-05-14
PCT/GB2003/001686 WO2003093995A2 (en) 2002-04-30 2003-04-16 Dispatch in priority pre-emptive real-time operating systems

Publications (1)

Publication Number Publication Date
EP1514181A2 true EP1514181A2 (de) 2005-03-16

Family

ID=29404289

Family Applications (1)

Application Number Title Priority Date Filing Date
EP03718943A Withdrawn EP1514181A2 (de) 2002-04-30 2003-04-16 Aufgabenzuteilung in prioritätspreemptiven echtzeitbetriebssystemen

Country Status (3)

Country Link
EP (1) EP1514181A2 (de)
AU (1) AU2003222977A1 (de)
WO (1) WO2003093995A2 (de)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5630128A (en) * 1991-08-09 1997-05-13 International Business Machines Corporation Controlled scheduling of program threads in a multitasking operating system
JPH05127926A (ja) * 1991-10-31 1993-05-25 Nec Corp タスク制御装置
FR2696259A1 (fr) * 1992-09-30 1994-04-01 Apple Computer Organisation en tâches et en modules d'une exécution dans un processeur.
CA2131406C (en) * 1993-09-21 2002-11-12 David D'souza Preemptive multi-tasking with cooperative groups of tasks
US5799188A (en) * 1995-12-15 1998-08-25 International Business Machines Corporation System and method for managing variable weight thread contexts in a multithreaded computer system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See references of WO03093995A3 *

Also Published As

Publication number Publication date
AU2003222977A1 (en) 2003-11-17
WO2003093995A3 (en) 2004-12-29
WO2003093995A2 (en) 2003-11-13
AU2003222977A8 (en) 2003-11-17

Similar Documents

Publication Publication Date Title
US8166483B2 (en) Method and apparatus for implementing priority management of computer operations
US6052739A (en) Method and apparatus for object-oriented interrupt system
US8161453B2 (en) Method and apparatus for implementing task management of computer operations
US7451447B1 (en) Method, computer program and apparatus for operating system dynamic event management and task scheduling using function calls
EP1839146B1 (de) Mechanismus zum einteilen von threads auf os-sequestriert ohne betriebssystemintervention
US5799188A (en) System and method for managing variable weight thread contexts in a multithreaded computer system
US20090106762A1 (en) Scheduling Threads In A Multiprocessor Computer
US20040055003A1 (en) Uniprocessor operating system design facilitating fast context swtiching
US5526521A (en) Method and system for process scheduling from within a current context and switching contexts only when the next scheduled context is different
JPH11353196A (ja) タイム・スケジュ―ルされたプロセス管理用ガバナ
Lamie Real-Time Embedded Multithreading using ThreadX and MIPS
Zuberi et al. EMERALDS: a small-memory real-time microkernel
Straumann Open source real time operating systems overview
US9122521B2 (en) Enabling multiple operating systems to run concurrently using barrier task priority
US20040098722A1 (en) System, method, and computer program product for operating-system task management
Dellinger et al. ChronOS Linux: a best-effort real-time multiprocessor Linux kernel
US20070101326A1 (en) Dynamic change of thread contention scope assignment
US20030204639A1 (en) Task dispatch in priority pre-emptive real-time operating systems
Burns et al. Restricted tasking models
Golub Operating system support for coexistence of real-time and conventional scheduling
CN120216124A (zh) 一种用户中断事件回调机制实现方法
Hu et al. Real-time schedule algorithm with temporal and spatial isolation feature for mixed criticality system
Pulido et al. Hierarchical scheduling with Ada 2005
WO2003093995A2 (en) Dispatch in priority pre-emptive real-time operating systems
Harbour Real-time posix: an overview

Legal Events

Date Code Title Description
PUAI Public reference made under article 153(3) epc to a published international application that has entered the european phase

Free format text: ORIGINAL CODE: 0009012

17P Request for examination filed

Effective date: 20041020

AK Designated contracting states

Kind code of ref document: A2

Designated state(s): AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HU IE IT LI LU MC NL PT RO SE SI SK TR

AX Request for extension of the european patent

Extension state: AL LT LV MK

STAA Information on the status of an ep patent application or granted ep patent

Free format text: STATUS: THE APPLICATION IS DEEMED TO BE WITHDRAWN

18D Application deemed to be withdrawn

Effective date: 20071102