University of Ottawa
Software Engineering - Quiz 2 Participation
Review: Real-Time Operating Systems (RTOS)
and Embedded Systems
Course: SEG 4145
, SEG 4145 - Software Engineering Quiz participation 2
Quiz2 Participation
Q1.
An embedded system has three tasks: sensor acquisition, control algorithm, and
communication. Each task must run independently but share CPU time.
Which RTOS concept best supports this design?
A. Interrupt-only programming
B. Threads
C. Polling loop
D. DMA transfers
Correct answer: B
Q2.
Two threads update the same global variable storing sensor data. Occasionally, corrupted
values appear.
What RTOS mechanism should be used to prevent this issue?
A. Semaphore
B. Interrupt masking
C. Mutex
D. Timer
Correct answer: C
Q3.
A thread waits indefinitely for a shared resource and blocks the system when the resource
is never released.
Which RTOS feature prevents this situation?
A. Priority inheritance
B. Mutex timeout
C. Preemptive scheduling
D. Context switching
Correct answer: B