We think you have liked this presentation. If you wish to download it, please recommend it to your friends in any social system. Share buttons are a little bit lower. Thank you!
Presentation is loading. Please wait.
Published byClaire Nash
Modified over 2 years ago
ITRON History ITRON1 – designed for 8 and 16 bit MCU ITRON2 – support 32 bit MCU μITRON2 – adaptation for low-cost MCU μITRON3 – scalability enhancements μITRON4 – compatibility enhancement Targeted for 32 bit MPU The first spec for ITRON Kernel Targeted for 8-bit and 16-bit MCU Scalability Enhancement Compatibility Enhancement Copyright © 2011 DSR Corporation 1
ITRON Usage (cont. ) Copyright © 2011 DSR Corporation 2
Configure the System RTOS configuration file Source files for the task Source files for the interrupt handler Configurator Compiling and linking Software Components Object file To ROM RTOS Libraries Software Components Other Libraries.c and.h files are generated as a result of configurator functioning Copyright © 2011 DSR Corporation 3
Task States (cont.) Copyright © 2011 DSR Corporation 4
Scheduling Rules (cont.) Scheduling example Task A of the highest priority Task B, C, D of the middle priority Task E of the lowest priority Workflow Task A terminates, task B moves to RUNNING state If task B goes to WAITING or SUSPENDEND state and then back to READY, it has the lowest precedence If Task A is reactivated, Task B is pre-empted and return to the READY state, it has the highest precedence Copyright © 2011 DSR Corporation 5
Dispatch Pending State Dispatch does not occur (dispatch pending state) – During execution of processing units with higher precedence than that of the dispatcher – The CPU in locked state – Dispatch disabled state Task state transition into SUSPENDED or DORMANT state is hold until dispatch is turned on – Task state transition may be done using service calls from non-task context Low priority task A is running Dispatch pending state during interrupt handler execution High priority task B is activated from interrupt handler Task state changes only after dispatcher executes Copyright © 2011 DSR Corporation 6
Semaphore (cont.) Semaphore usage example Semaphore acquire req. Semaphore acquired Semaphore (SID1) Work with shared resources Release semaphore Semaphore acquire req. Work with shared resources Sem. resource number = 0 Sem. resource number = 1 Start Semaphore acquired Dispatch Wait release, dispatch Task 1 (Priority: Low) Task 2 (Priority: High) Copyright © 2011 DSR Corporation 7
Eventflag (cont.) Eventflag usage example Event flag is cleared Set event flag 01 Release waiting flag=01 flag=00 Wait for event 11 Starting Dispatch Wait release, dispatch Task 1 (Priority: Low) Eventflag Task 2 (Priority: High) Copyright © 2011 DSR Corporation 8
Data Queue (cont.) Data queue functioning example: wait for receive Empty queue Data queue Receive message Release waiting Send message Wait release, dispatch Task 1 (Priority: Low) Task 2 (Priority: High) Dispatch Receive wait Copyright © 2011 DSR Corporation 9
Data Queue (cont.) Data queue functioning example: asynchronous send 1 message in queue Start Task 1 (Priority: Low) Data queue Task 2 (Priority: High) Time Send a message Empty queue Receive message Empty queue Copyright © 2011 DSR Corporation 10
Data Queue (cont.) Data queue functioning example: wait for send Queue is full Send a message Receive message Data queue Put data to queue Send-wait state Dispatch Wait release, dispatch Task 1 (Priority: Low) Data queue Task 2 (Priority: Low) Copyright © 2011 DSR Corporation 11
References μITRON4.0 Specification _en.pdf _en.pdf RTEMS ITRON 3.0 Users Guide eCOS μITRON API ITRON short description FAQ of ITRON Specification OS TOPEERS/JSP Copyright © 2011 DSR Corporation 12
Processing Order: Cooperative vs. Preemptive Process B2 Process A Process C Process B1 Process D Process A (low priority, cyclic) Process C (high priority,
Real-Time Systems Reny Sebastian, SEG, ER&DCI, TVM.
Threads, SMP, and Microkernels Chapter 4 1. Process Resource ownership - process includes a virtual address space to hold the process image Scheduling/execution-
1 Process Description and Control Chapter 2. 2 Process A program in execution An instance of a program running on a computer The entity that can be assigned.
3.1 Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition Process An operating system executes a variety of programs: Batch system.
Chapter 3 1 Process Description and Control Chapter 3.
Tornado and VxWorks. Copyright © Wind River Systems, Inc.2 Tornado-VxWorks Architecture The Real-Time, Multitasking OS Intertask Synchronization and Communication.
Processes and Threads Chapter 3 and 4 Operating Systems: Internals and Design Principles, 6/E William Stallings Patricia Roy Manatee Community College,
Chapter 2 Operating System Overview Patricia Roy Manatee Community College, Venice, FL ©2008, Prentice Hall Operating Systems: Internals and Design Principles,
Uniprocessor Scheduling Chapter 9 Operating Systems: Internals and Design Principles, 6/E William Stallings Patricia Roy Manatee Community College, Venice,
Mr. Deven Patel, AITS, Rajkot. 1 Process Description and Control Chapter 3.
© 2004, D. J. Foreman 1 Scheduling & Dispatching.
CMPT 401 Dr. Alexandra Fedorova Lecture III: OS Support.
William Stallings Computer Organization and Architecture 8 th Edition Chapter 3 Top Level View of Computer Function and Interconnection.
Evidence Srl - – 2008 Real-time kernels for embedded systems Paolo Pagano (ReTiS lab) Lecture 3 90% of the slides gracefully given.
Windows CE Real-Time Performance Architecture John Hatch Program Manager for CE Kernel Microsoft Corporation.
Fakultät für informatik informatik 12 technische universität dortmund Resource Access Protocols Peter Marwedel Informatik 12 TU Dortmund Germany 2008/12/06.
Computer Architecture and Organization Computer Components and System Buses.
Chapter 20- Embedded Systems Lecture 1. Topics covered Embedded systems design Architectural patterns Timing analysis Real-time operating systems.
T-Engine Middleware Tomas Sanchez Lopez Real-time & Embedded Systems Laboratory
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 15 Slide 1 Real-time Software Design.
Chapter 4 1 Threads Threads are a subdivision of processes Since there is less information associated with a thread than there is info associated with.
1 Operating Systems Chapter 6. 2 What is an operating system? A program that runs on the hardware and supports Resource Abstraction Resource Sharing Abstracts.
CMPT 431 Dr. Alexandra Fedorova Lecture III: OS Support.
CMPT 401 Summer 2007 Dr. Alexandra Fedorova Lecture III: OS Support.
Processes Management. 3.2 Silberschatz, Galvin and Gagne ©2011 Operating System Concepts Essentials – 8 th Edition Process Management A process is a program.
Linux: The Guts By Sam Evans and John Massey. History Of Linux ❖ 1984: Richard Stallman quits his job at MIT, and starts working on the GNU project. ❖
©Ian Sommerville 2000 Software Engineering, 6th edition. Chapter 13Slide 1 Chapter 13 Real-time Software Design.
3: Processes1 Jerry Breecher OPERATING SYSTEMS PROCESSES.
Operating Systems Semaphores II. Producer/Consumer Problem Consumer must wait for producer to fill buffers, if none full –(scheduling constraint) Producer.
© 2016 SlidePlayer.com Inc. All rights reserved.