+ All Categories
Home > Documents > Realtime- (Operating)- Systemsmitarbeiter.hs-heilbronn.de/~doneit/Real/Einf... · Hard...

Realtime- (Operating)- Systemsmitarbeiter.hs-heilbronn.de/~doneit/Real/Einf... · Hard...

Date post: 22-May-2020
Category:
Upload: others
View: 3 times
Download: 0 times
Share this document with a friend
29
S t u d i e n g a n g S o f t w a r e E n g i n e e r i n g - R e a l t i m e S y s t e m s Realtime- (Operating)- Systems
Transcript
Page 1: Realtime- (Operating)- Systemsmitarbeiter.hs-heilbronn.de/~doneit/Real/Einf... · Hard Realtimesystem • The system should under no circumstances miss the deadline. • Results are

Studiengang Software Engineering - Realtime Systems

Realtime-(Operating)-

Systems

Page 2: Realtime- (Operating)- Systemsmitarbeiter.hs-heilbronn.de/~doneit/Real/Einf... · Hard Realtimesystem • The system should under no circumstances miss the deadline. • Results are

07.10.2008 2

Studiengang Software Engineering - Realtime Systems

What is a real-time system?

• DIN-Norm:• To respond in a nameable and guaranteed

time • To random and external signals• the exact size of this time is deliberately not stated .

Page 3: Realtime- (Operating)- Systemsmitarbeiter.hs-heilbronn.de/~doneit/Real/Einf... · Hard Realtimesystem • The system should under no circumstances miss the deadline. • Results are

07.10.2008 3

Studiengang Software Engineering - Realtime Systems

Hard Realtimesystem

• The system should under no circumstances miss thedeadline.

• Results are useless if they arrive too late.

• Catastrophic consequences if a deadline is notrespected.

• Very high cost of missed deadlines.

Page 4: Realtime- (Operating)- Systemsmitarbeiter.hs-heilbronn.de/~doneit/Real/Einf... · Hard Realtimesystem • The system should under no circumstances miss the deadline. • Results are

07.10.2008 4

Studiengang Software Engineering - Realtime Systems

Soft Realtimesystems

• Deadlines can be missed

• Low costs when late arrival of results.

• Accepting a lower performance for a delay

Page 5: Realtime- (Operating)- Systemsmitarbeiter.hs-heilbronn.de/~doneit/Real/Einf... · Hard Realtimesystem • The system should under no circumstances miss the deadline. • Results are

07.10.2008 5

Studiengang Software Engineering - Realtime Systems

Realtime-Operating-Systems

• Often there is confusion about the meaning of Real-Time-System and Real-Time-OperatingSystem:

• A special real-time OS allows us to buil a hard real-time system.

• Examples of RT-OS: QNX, RTOS, OS-9, Lynx-OS (NT), etc.

Page 6: Realtime- (Operating)- Systemsmitarbeiter.hs-heilbronn.de/~doneit/Real/Einf... · Hard Realtimesystem • The system should under no circumstances miss the deadline. • Results are

07.10.2008 6

Studiengang Software Engineering - Realtime Systems

Requirements

1st It must be multithreaded and preemtive. 2nd Thread priorities must be present. 3rd The OS must support predictable threadsynchronization algorithms. 4th Priority inheritance must exist. 5th The operating system behavior must be known.

Page 7: Realtime- (Operating)- Systemsmitarbeiter.hs-heilbronn.de/~doneit/Real/Einf... · Hard Realtimesystem • The system should under no circumstances miss the deadline. • Results are

07.10.2008 7

Studiengang Software Engineering - Realtime Systems

Examples

• Chorus / ClassiX 3.1• Chorus / JaZZ• Softworks für WinNT• Softworks für UNIX• RTOS-UH• LynxOS• OSEKplus• Adwin-System• RDE/2• WinNT + DIAdem 6

Page 8: Realtime- (Operating)- Systemsmitarbeiter.hs-heilbronn.de/~doneit/Real/Einf... · Hard Realtimesystem • The system should under no circumstances miss the deadline. • Results are

Studiengang Software Engineering - Realtime Systems

An overview for the RealtimeOS

QNX

Page 9: Realtime- (Operating)- Systemsmitarbeiter.hs-heilbronn.de/~doneit/Real/Einf... · Hard Realtimesystem • The system should under no circumstances miss the deadline. • Results are

07.10.2008 9

Studiengang Software Engineering - Realtime Systems

QNX

• QNX Software Systems Company founded in 1980 QNX currently in over 100 countries usedApplications: Medical technology (such as blood donor system Rx: QNX) Automotive technology (such as autonomous driving by VW) Air & Space (such as 3D positioning cargo for the spaceshuttle's) Process control (such as real-time visualization) Telecommunications (eg multimedia phone cards of British Telecom) Consumer Electronics (z.B WebPad of Cyrix)

Page 10: Realtime- (Operating)- Systemsmitarbeiter.hs-heilbronn.de/~doneit/Real/Einf... · Hard Realtimesystem • The system should under no circumstances miss the deadline. • Results are

07.10.2008 10

Studiengang Software Engineering - Realtime Systems

Functions and Characteristics of QNX

• General: Management of the resources of a computer

QNX: Hard real time by multitasking capability and priority, predatory schedulingMicro-kernel, modular design and message basedcommunication processesGraphical user interface with the "photon microGUIWindowing System

Page 11: Realtime- (Operating)- Systemsmitarbeiter.hs-heilbronn.de/~doneit/Real/Einf... · Hard Realtimesystem • The system should under no circumstances miss the deadline. • Results are

07.10.2008 11

Studiengang Software Engineering - Realtime Systems

Hard Realtime Scheduling

• Priority, predatory scheduling

Temperatur inside

Realtimsystem

Wheelsensor

ABS

Aircondition

Page 12: Realtime- (Operating)- Systemsmitarbeiter.hs-heilbronn.de/~doneit/Real/Einf... · Hard Realtimesystem • The system should under no circumstances miss the deadline. • Results are

07.10.2008 12

Studiengang Software Engineering - Realtime Systems

Latency

• The Interrupt-Latency

Page 13: Realtime- (Operating)- Systemsmitarbeiter.hs-heilbronn.de/~doneit/Real/Einf... · Hard Realtimesystem • The system should under no circumstances miss the deadline. • Results are

07.10.2008 13

Studiengang Software Engineering - Realtime Systems

Aufgaben und Eigenschaftenvon QNX

• Allgemein: – Verwaltung der Ressourcen eines Computers

• QNX:– Harte Echtzeitfähigkeit durch Multitasking und

prioritätsgesteuertes, verdrängendes Scheduling

– Mikrokernel, modularer Aufbau undNachrichten basierte Kommunikation der Prozesse

– Grafische Oberfläche mit dem „Photon microGUI Windowing System“

Page 14: Realtime- (Operating)- Systemsmitarbeiter.hs-heilbronn.de/~doneit/Real/Einf... · Hard Realtimesystem • The system should under no circumstances miss the deadline. • Results are

07.10.2008 14

Studiengang Software Engineering - Realtime Systems

Der Microkernel

• Modular construction, communication process• Focus on the essentials

Page 15: Realtime- (Operating)- Systemsmitarbeiter.hs-heilbronn.de/~doneit/Real/Einf... · Hard Realtimesystem • The system should under no circumstances miss the deadline. • Results are

07.10.2008 15

Studiengang Software Engineering - Realtime Systems

Der MikrokernelModularer Aufbau, Prozess-Kommunikation

• Focus on the essentials

Page 16: Realtime- (Operating)- Systemsmitarbeiter.hs-heilbronn.de/~doneit/Real/Einf... · Hard Realtimesystem • The system should under no circumstances miss the deadline. • Results are

07.10.2008 16

Studiengang Software Engineering - Realtime Systems

Der MikrokernelModularer Aufbau, Prozess-Kommunikation

• Spezialisierung auf das Wesentliche

Page 17: Realtime- (Operating)- Systemsmitarbeiter.hs-heilbronn.de/~doneit/Real/Einf... · Hard Realtimesystem • The system should under no circumstances miss the deadline. • Results are

07.10.2008 17

Studiengang Software Engineering - Realtime Systems

Der MikrokernelModularer Aufbau, Prozess-Kommunikation

• Spezialisierung auf das Wesentliche

Page 18: Realtime- (Operating)- Systemsmitarbeiter.hs-heilbronn.de/~doneit/Real/Einf... · Hard Realtimesystem • The system should under no circumstances miss the deadline. • Results are

07.10.2008 18

Studiengang Software Engineering - Realtime Systems

Der MikrokernelModularer Aufbau, Prozess-Kommunikation

• Spezialisierung auf das Wesentliche

Page 19: Realtime- (Operating)- Systemsmitarbeiter.hs-heilbronn.de/~doneit/Real/Einf... · Hard Realtimesystem • The system should under no circumstances miss the deadline. • Results are

07.10.2008 19

Studiengang Software Engineering - Realtime Systems

Der MikrokernelModularer Aufbau, Prozess-Kommunikation

• Spezialisierung auf das Wesentliche

Page 20: Realtime- (Operating)- Systemsmitarbeiter.hs-heilbronn.de/~doneit/Real/Einf... · Hard Realtimesystem • The system should under no circumstances miss the deadline. • Results are

07.10.2008 20

Studiengang Software Engineering - Realtime Systems

„Photon microGUI Windowing System“

• Costly surfaces possible

Page 21: Realtime- (Operating)- Systemsmitarbeiter.hs-heilbronn.de/~doneit/Real/Einf... · Hard Realtimesystem • The system should under no circumstances miss the deadline. • Results are

Studiengang Software Engineering - Realtime Systems

Realtime System Test Setup

Page 22: Realtime- (Operating)- Systemsmitarbeiter.hs-heilbronn.de/~doneit/Real/Einf... · Hard Realtimesystem • The system should under no circumstances miss the deadline. • Results are

07.10.2008 22

Studiengang Software Engineering - Realtime Systems

„Windows NT as a Realtime-System“

At the Technical University of Munich-Windows NT has been used to control a free-floating ball for testing thereal-time capability

Page 23: Realtime- (Operating)- Systemsmitarbeiter.hs-heilbronn.de/~doneit/Real/Einf... · Hard Realtimesystem • The system should under no circumstances miss the deadline. • Results are

07.10.2008 23

Studiengang Software Engineering - Realtime Systems

Experimental setup

Page 24: Realtime- (Operating)- Systemsmitarbeiter.hs-heilbronn.de/~doneit/Real/Einf... · Hard Realtimesystem • The system should under no circumstances miss the deadline. • Results are

07.10.2008 24

Studiengang Software Engineering - Realtime Systems

Blockschaltung

Page 25: Realtime- (Operating)- Systemsmitarbeiter.hs-heilbronn.de/~doneit/Real/Einf... · Hard Realtimesystem • The system should under no circumstances miss the deadline. • Results are

07.10.2008 25

Studiengang Software Engineering - Realtime Systems

Forces on the floating body

FB = F magnet – F weight

Page 26: Realtime- (Operating)- Systemsmitarbeiter.hs-heilbronn.de/~doneit/Real/Einf... · Hard Realtimesystem • The system should under no circumstances miss the deadline. • Results are

07.10.2008 26

Studiengang Software Engineering - Realtime Systems

The Multimedia-Timers

Page 27: Realtime- (Operating)- Systemsmitarbeiter.hs-heilbronn.de/~doneit/Real/Einf... · Hard Realtimesystem • The system should under no circumstances miss the deadline. • Results are

07.10.2008 27

Studiengang Software Engineering - Realtime Systems

Histogram halflogharitmic

Page 28: Realtime- (Operating)- Systemsmitarbeiter.hs-heilbronn.de/~doneit/Real/Einf... · Hard Realtimesystem • The system should under no circumstances miss the deadline. • Results are

07.10.2008 28

Studiengang Software Engineering - Realtime Systems

Result

• 10% Tolerance (1,9 bis 2,1ms)

• meantime 2 ms

• 99% timely call of „Call Back Funktion“

Page 29: Realtime- (Operating)- Systemsmitarbeiter.hs-heilbronn.de/~doneit/Real/Einf... · Hard Realtimesystem • The system should under no circumstances miss the deadline. • Results are

07.10.2008 29

Studiengang Software Engineering - Realtime Systems

Fazit

• NT disqualified for real real-time applications, since itgives 1% outliers, no safety applications can befulfilled; such as aircraft control during landing.

• Use for robust systems allowed


Recommended