Embedded Operating System Flashcards

1
Q

Which of these characteristics of Monolithic Kernel is false?

Fast Execution

A service crash does not crash the whole system

Both user services and kernel services are kept in the same address space

Hard to extend its functionality

A

A service crash does not crash the whole system

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

In FreeRTOS, the lowest priority interrupt (ISR) will interrupt the highest priority task.

True
False

A

True

FreeRTOS just supports it…

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

Which Task State occurs the least amount of time?

Blocked
Running
Ready
Terminated

A

Terminated

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

Which service/feature is the most important for multi-tasking to work in an EOS?

polling
context switch
inter-process communication
memory management

A

context switch

While other services and features like inter-process communication, memory management, and polling are important for multitasking and operating system functionality, context switching is the key mechanism that makes it possible to run multiple tasks in a time-sliced or concurrent manner.

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

If a task calls the following function, it will be placed into a “blocked” state for 250ms:
vTaskDelay(250);

True
False

A

False

vTaskDelay parameters are measured in Ticks NOT ms hence 250 ticks may or may not be == to 250ms according to travis

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

A task is the smallest sequence of instructions that can be managed independently by an/a ….

task control block (TCB)
scheduler
inter-process communication (IPC)
interrupt

A

scheduler

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

Task functions typically do not call “return()”

True
False
A

True

Task functions in FreeRTOS, typically do not call return() to exit the task. Instead, they use other mechanisms to exit or terminate the task

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

Which of the following statement is true based on the following code snippet?

xTaskCreate(avg_task, “AvgThread”, configMINIMAL_STACK_SIZE, NULL,
TEST_TASK_PRIORITY
, NULL);
xTaskCreate(simpleaverage, “TempThread”, configMINIMAL_STACK_SIZE, NULL,
TEST_TASK_PRIORITY
, NULL);

xTaskCreate(printfunction, “AvgThread”, configMINIMAL_STACK_SIZE, NULL, TEST_TASK_PRIORITY, &printtask);

Priority-based scheduling will occur 

The program will crash at the instruction: "for( ; ; )"

The program will crash at the instruction: "vTaskStartScheduler()"

Round-robin scheduling will occur
A

Round-robin scheduling will occur

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

Which Priority Driven Scheduling Algorithm is dynamic-priority based?

Earliest Deadline First (EDF)

Rate Monotonic Scheduling (RMS)

Least Slack Time (LST)

Deadline Monotonic Scheduling (DMS)

A

Earliest Deadline First (EDF) each task is assigned a priority based on its relative urgency or the closeness of its deadline. Tasks with earlier deadlines are given higher priorities.

Least Slack Time (LST) assigns priorities to tasks based on their remaining execution time and their deadlines

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

Which of the following are considerations when selecting an RTOS? [Select 2]

Decompilers

Debuggers

Features

Machine Learning

A

Debuggers

Features

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