Bird
0
0

You want to implement a simple cooperative multitasking system using PendSV and SysTick. Which sequence correctly describes how these exceptions interact?

hard📝 Application Q8 of 15
ARM Architecture - Exception and Interrupt Model
You want to implement a simple cooperative multitasking system using PendSV and SysTick. Which sequence correctly describes how these exceptions interact?
ASysTick and PendSV trigger simultaneously and switch tasks together
BPendSV triggers periodically, sets SysTick to switch tasks, SysTick performs context switch
CPendSV triggers only on hardware faults, SysTick handles all task switching
DSysTick triggers periodically, sets PendSV to switch tasks, PendSV performs context switch
Step-by-Step Solution
Solution:
  1. Step 1: Understand SysTick role

    SysTick generates periodic interrupts to signal time slices.
  2. Step 2: Understand PendSV role

    PendSV is triggered by setting its pending bit to perform context switching.
  3. Final Answer:

    SysTick triggers periodically, sets PendSV to switch tasks, PendSV performs context switch -> Option D
  4. Quick Check:

    SysTick triggers, PendSV switches tasks [OK]
Quick Trick: SysTick triggers, PendSV switches tasks [OK]
Common Mistakes:
  • Reversing roles of SysTick and PendSV
  • Thinking they trigger simultaneously
  • Assuming PendSV triggers only on faults

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More ARM Architecture Quizzes