1 General RTOS Flashcards

1
Q

What is an RTOS?

A

Multitasking operating system intended for real-time applications.

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

Why use RTOS?

A

Brings structure to a design.
Kernel multitasking removes the problem of scheduling from the application.
More efficient use of CPU resources.

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

How many possible task states are there?

A

4

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

What are the task states?

A

Ready
Running
Suspended
Blocked

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

What handles task switching?

A

The kernel handles the task switching, however the application code determines when task switches should occur.

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

What is the heartbeat of the RTOS System?

A

The tick timer is the of the RTOS System.

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

Explain time-slice scheduling?

A

CPU resources are time-sliced between tasks of equal priority. i.e. task 1 runs for one tick, then task2 runs for the next tick then back to one.
The sheduler switched between tasks on each tick interrupt.

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

Explain pre-emptive scheduling?

A

Scheduling based on task priority. If a higher priority task is in the ready state, the current running task is suspended. It leads to fast response time for high priority task.

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

What can a task do if it needs to be aware of other tasks?

A

A Task may block, awaiting a synchronisation event from another task.

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

What can be used for task synchronisation?

A

Queues, Semaphores, event groups, mutexex, notifications.

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

How would you communicate data between task?

A

Communication objects

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