0
0
Embedded Cprogramming~5 mins

Polling vs interrupt-driven execution in Embedded C - Quick Revision & Key Differences

Choose your learning style9 modes available
Recall & Review
beginner
What is polling in embedded systems?
Polling is a method where the CPU repeatedly checks the status of a device or condition in a loop to see if it needs attention.
Click to reveal answer
beginner
What is interrupt-driven execution?
Interrupt-driven execution lets the CPU respond immediately when a device signals an event, pausing current tasks to handle it.
Click to reveal answer
beginner
Name one advantage of polling.
Polling is simple to implement and easy to understand because the CPU controls when it checks devices.
Click to reveal answer
beginner
Name one advantage of interrupt-driven execution.
Interrupts allow the CPU to do other work and only respond when needed, improving efficiency and responsiveness.
Click to reveal answer
beginner
What is a disadvantage of polling compared to interrupts?
Polling wastes CPU time checking devices even when no event occurs, which can slow down the system.
Click to reveal answer
Which method waits actively by checking device status repeatedly?
ADirect memory access
BInterrupt-driven execution
CPolling
DDMA transfer
What happens in interrupt-driven execution when a device signals an event?
ACPU pauses current task to handle the event
BCPU ignores the event
CCPU restarts
DCPU enters sleep mode
Which method is more efficient for CPU usage?
AInterrupt-driven execution
BPolling
CBoth are equally efficient
DNeither is efficient
Which method is simpler to implement for beginners?
AInterrupt-driven execution
BPolling
CMultithreading
DDMA
What is a common drawback of interrupt-driven execution?
ACPU wastes time checking devices
BCPU cannot respond quickly
CIt uses more power than polling
DComplexity in handling multiple interrupts
Explain the difference between polling and interrupt-driven execution in embedded systems.
Think about how the CPU waits for events in each method.
You got /4 concepts.
    List advantages and disadvantages of polling and interrupt-driven execution.
    Consider what makes each method easy or hard to use and how they affect CPU work.
    You got /4 concepts.