Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

SEG 4145 Software Engineering - Quiz 3 Participation Review: RTOS Scheduling, TrustZone Memory Security, and Interrupt Handling

Rating
-
Sold
-
Pages
28
Grade
A+
Uploaded on
16-03-2026
Written in
2025/2026

This comprehensive study guide covers the key concepts assessed in Quiz Participation 3 for the SEG 4145 Software Engineering course. Based on the provided quiz document, this guide focuses on advanced Real-Time Operating System (RTOS) scheduling concepts including preemption vs. time slicing, priority-based scheduling, task blocking behavior, and cooperative vs. preemptive scheduling models. The guide also covers STM32L552 TrustZone memory architecture, including Secure and Non-Secure memory region identification for RAM and FLASH, and the configuration of security attributes through TrustZone registers. Additionally, it addresses interrupt handling versus polling in FreeRTOS contexts, including latency considerations, CPU utilization, and design trade-offs for asynchronous event detection. Each concept is explained with detailed analysis of the quiz questions, common pitfalls, and the underlying software engineering principles for embedded systems design. Keywords: SEG 4145, software engineering, quiz 3, particip

Show more Read less
Institution
Course

Content preview

DOWNLOAD

University of Ottawa



Software Engineering - Quiz 3 Participation
Review: RTOS Scheduling, Trust Zone
Memory Security, and Interrupt Handling




Course: SEG 4145

,Question 1 — Préemption vs time slicing (piège conceptuel)

#define configUSE_PREEMPTION 1

#define configUSE_TIME_SLICING 1



const osThreadAttr_t Task1_attributes = { .priority = 3 };

const osThreadAttr_t Task2_attributes = { .priority = 2 };

const osThreadAttr_t Task3_attributes = { .priority = 2 };



void StartTask1(void *argument)

{

for(;;) { countTask1++; } // never blocks

}



void StartTask2(void *argument)

{

for(;;) { countTask2++; }

}



void StartTask3(void *argument)

{

for(;;) { countTask3++; }

}

Question:
Which statement best describes the runtime behavior?

A. Task2 and Task3 alternate fairly because time slicing is enabled
B. All three tasks share CPU time equally

, C. Task1 dominates execution; Task2 and Task3 may never run
D. Task2 and Task3 preempt Task1 periodically

Correct answer: C

Key idea:
Time slicing does NOT override priority. Preemption ensures the highest-priority READY
task always runs.



Question 2 — Time slicing only among equals

#define configUSE_PREEMPTION 1

#define configUSE_TIME_SLICING 1



const osThreadAttr_t Task1_attributes = { .priority = 2 };

const osThreadAttr_t Task2_attributes = { .priority = 2 };

const osThreadAttr_t Task3_attributes = { .priority = 2 };



void StartTask1(void *argument) { for(;;) { countTask1++; } }

void StartTask2(void *argument) { for(;;) { countTask2++; } }

void StartTask3(void *argument) { for(;;) { countTask3++; } }

Question:
What is the most accurate description?

A. Only the first-created task runs continuously
B. Tasks run one after another in a fixed order
C. Tasks alternate execution in time slices
D. The task with the smallest stack runs more often

Correct answer: C

Key idea:
With configUSE_TIME_SLICING = 1, equal-priority READY tasks share the CPU.

Written for

Institution
Study
Course

Document information

Uploaded on
March 16, 2026
Number of pages
28
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$23.49
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF


Also available in package deal

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
grade_bender Rasmussen College
Follow You need to be logged in order to follow users or courses
Sold
1060
Member since
6 year
Number of followers
958
Documents
2182
Last sold
1 week ago
Grade_bender all documents, bundles, and flashcards

Access the most current and rigorously authenticated examination materials, including actual tests with 100% verification. Our comprehensive repository encompasses ATI, Nursing, PMHNP, TNCC, USMLE, ACLS, WGU, and all associated certification and academic assessments—each designed to ensure guaranteed success. Should a specific resource be unavailable in our catalog, our dedicated support team will procure it promptly upon request. Purchase with absolute confidence. We strongly encourage all clients to submit a review post-acquisition to affirm complete satisfaction and uphold our commitment to academic excellence.

Read more Read less
3.8

147 reviews

5
72
4
31
3
15
2
7
1
22

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions