L4 - RT Operating Systems Flashcards

1
Q

What are the main tasks of an operating system?

A

An OS controls the computer’s resources and provides base upon which applications can be written.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the difference between the extended machine and the resource manager?

A
  • extended machine: easy to use hides technical details
  • resource manager: provides allocation of processors, memory etc.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

User Space

A

use functionality provided by the OS (normal processors) not the same rights to access memory/hardware as the OS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Kernel Space

A

unlimited access to all resources; kernel executes its services interaction with user space via system calls

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Define Cooperative Scheduling.

A

different processes in parallel; processes must cooperate with scheduler processor cannot be taken from a process. E.g.: MacOS pre9; Windows 95/98/ME

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is Preemptive Scheduling?

A

In preemptive scheduling the processor can be forcibly taken from any running process in user and even kernel space. E.g.: LINUX; MacOS; Windows NT/XP/Vista/7

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Which type of scheduling do RTS mostly use today?

A

RTS use mostly preemptive scheduling.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Name three requirements of Real Time Operating Systems (RTOS).

A
  • stable around-the-clock operation;
  • exact and predefined response times;
  • parallel processes;
  • multi-core and multi-CPU support;
  • fast process-switching (lightweight process, real time interrupt handling
  • support for I/O operations (dynamic binding to kernel)
  • system API (e.g. POSIX)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Name three different types of latency.

A
  • interrupt latency: time needed between interruption and execution
  • scheduling latency: time between execution of last instruction of ISR and execution of process which state was changed due to the interruption
  • context switch latency: time between execution of last instruction and the next process
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the difference between monolithic kernel and microkernel?

A
  • Monolithic (Linux; Windows): services (driver; file system; network stack) of the OS run in kernel space
  • Microkernel (QNX; Symbian; OS X; PikeOS): basic functionality (Basic IPC; Virtual Memory; Scheduling) in kernel space other services in user space
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

QNX architecture

A

In QNX only a minimal set of services contained in the kernel space (only communication; threading and synchronization). OS services and device drivers run in user space.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Which company did develop VxWorks?

A

WindRiver / Intel.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Name an advantage and disadvantage of Linux.

A
  • insufficient timer resolution, virtual memory (non-deterministic) and non-preemptive kernel
  • easy development, portability and good hardware support —> RTLinux (add Hardware Abstraction Layer)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

AUTOSAR

A

AUTOSAR is a successor of OSEK/VDX and aims to become an industry standard. It was developed by BMW; Bosch; Continental; DaimlerChrysler; VW; Siemens and consists out of a modular layered architecture with standardized interfaces.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

TinyOS

A
  • components connected via interfaces
  • optimized for sensor networks
  • no separate OS
  • kernel or memory management -> single shared stack static memory allocation
  • concurrency model: processes only interrupted by events not processes; FIFO
How well did you know this?
1
Not at all
2
3
4
5
Perfectly