RTOS Flashcards

(32 cards)

1
Q

what is a system?

A

Something that solves a problem

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

What is a task?

A

Group of instructions that execute on a micro-controller to solve a portion of the problem. System may have multiple tasks running at one time.

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

multitasking?

A

doing multiple things at once

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

Deadline

A

Most essential aspect.

tasks has to perform their function within a prescribed deadline.

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

What types of deadlines are there?

A
Absolute deadlines(hard real time system)
Relaxed(soft real time system)-tasks don't have rigid time constraints.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is Priority?

A

Determines the importance of a task in a system. Important tasks have higher priority

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

What is Preemption?

A

Higher priority tasks perform their tasks before low priority tasks

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

What is a Scheduler?

A

Decides which tasks runs at what time.

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

What are the two types of RTOS?

A

Even Driven Systems and Time Sharing Systems

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

What is an event driven system?

A

Its a system which swiches between tasks based on priorities

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

What is a time sharing system?

A

A system that switches tasks based on clock interrupts

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

What is Jitter?

A

the variability in time that it takes to accept and complete a task

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

what does it mean to switch tasks?

A

Also called context switching. Its when you restore the state of a process so that execution can be resumed from the same point at a later time.

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

What is preemptive priority

A

Also called priority scheduling. Act of temporarily interrupting a task being carried out with the intention of resuming the task later.

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

What 3 states does a task have?

A

Running(being executed on CPU)
Ready(Ready to be executed)
Blocked(Waiting for an event)

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

It is unsafe for two tasks to access the same specific data or hardware resource simultaneously. What are the three common approaches to solving this problem?

A

Temporarily Masking/Disabling Interrupts

Binary Semaphores

Message Passing

17
Q

What are binary semaphores

A

variable or abstract data type that is used to control access to a common resource

18
Q

kernel?

A

computer program that has complete control over everything that occurs in the computers operating system

19
Q

What is a process?

A

A program that has sole control over some system resources
Processes can’t directly share its resources and so are protected from each other.
e.g. main()

20
Q

what is a thread of execution?

A

smallest sequence of programmed instructions that can be managed independently by a scheduler.
Threads are inside the process.

Threads are created from within a process

21
Q

What does it mean when we say processes are hostile to each other?

A

Each process has a different owner.

Has its own address space, global variables, open files and signals and semaphores

22
Q

What does it mean when we say processes are hostile to each other?

A

Each process has a different owner.

Has its own address space, global variables, open files and signals and semaphores

23
Q

Difference between processes and threads

A

Threads cooperate with each other

has the sam eowner

24
Q

What are the different structures for multitasking?

A
  1. Sequential execution (superloop)
  2. Timed super loop
  3. Backround/foreground-interrupts
  4. Schedulers of various types
25
What is the super loop structure?
It simply loops endlessly Loop Execution time isn't constant Tasks BLOCK EACH OTHER. A task that is ready to execute has to wait for the one before it to finish There isn't a task prioritisation mechanism to give higher priority tasks more time
26
what is the timed super loop structure
adding a hardware timer tick to the superloop structure At least one task with execute regularly. Measured in real time STILL, processor time is wasted when you're waiting, tasks block each other and theres no prioritisation
27
What is the Foreground/Background Structure?
Interrupts are added to allow for prioritisation the superloop is in the background while the higher priority tasks are brought to the foreground. Foreground tasks are often event driven.
28
What is general OS structure?
Requires one task counter for each task, counters allow tasks to run at different rates Background tasks still block tasks can be enabled/disabled
29
What is the simplest scheduler?
Cycling scheduling. Same as super loop
30
What is Round Robin Scheduling?
System driven by a periodic interrupt. like the clock tick super loop
31
What is prioritised preemptive scheduling
High Priority tasks complete before any time is allocated to lower priority tasks. This is classical RTOS
32
What is Cooperative Scheduling?
It can control its own context switching so it minimises excess computation time.