OhmsCode.
CURRICULUM / ORIGINAL PRACTICE

Interrupts & concurrency

Separate visibility, atomicity and ordering, then choose a bounded synchronization strategy.

Reason about what can interrupt what.

Work through the assumptions, explain the mechanism, and connect it to a practical test. The questions below cover interrupts & concurrency within the junior embedded firmware role.

Start by writing what you expect, then identify what observation would prove you wrong. Keep target-specific behavior separate from portable C reasoning.

Try it before your sprint.

Public samples reveal deterministic explanations after you submit. Open-ended answers require a verified account to submit.

Explore six samples
Status#TitleTopicTypeDifficultyAcceptance
Not attempted15CPU time in an ISRInterrupts & concurrencyNumericEasy—
Not attempted25Debounce three samplesInterrupts & concurrencyC codeMedium—
Not attempted32A torn timestampInterrupts & concurrencyDebugMedium—
Not attempted79Interrupt storm after clearing NVIC pendingInterrupts & concurrencyDebugMedium—
Not attempted80The critical section enabled interrupts too soonInterrupts & concurrencyDebugMedium—
Not attempted81The ready flag beat the payloadInterrupts & concurrencyDebugMedium—
Not attempted82A receive interrupt lost burst countsInterrupts & concurrencyDebugMedium—
Not attempted83The ISR waits for itself indirectlyInterrupts & concurrencyDebugMedium—
Not attempted84A ring index is wider than the CPU accessInterrupts & concurrencyDebugMedium—
Not attempted85The debounce delay blocked urgent workInterrupts & concurrencyDebugMedium—
Not attempted86An atomic counter introduced an ISR deadlockInterrupts & concurrencyDebugMedium—
Not attempted154NVIC urgency numberingInterrupts & concurrencyMCQEasy—
Not attempted155Saving a previous interrupt maskInterrupts & concurrencyMCQEasy—
Not attempted156Pending does not mean countedInterrupts & concurrencyMCQEasy—
Not attempted157Level-triggered interrupt re-entryInterrupts & concurrencyMCQEasy—
Not attempted158An atomic operation in an ISRInterrupts & concurrencyMCQEasy—
Not attempted159Disabling preemption is not disabling DMAInterrupts & concurrencyMCQEasy—
Not attempted160Buffer publication orderingInterrupts & concurrencyMCQEasy—
Not attempted161Busy-waiting for a lower-priority ISRInterrupts & concurrencyMCQEasy—
Not attempted199Interrupt response budget remainingInterrupts & concurrencyNumericEasy—
Not attempted200CPU budget for a capture interruptInterrupts & concurrencyNumericEasy—
Not attempted201Nested-handler stack budgetInterrupts & concurrencyNumericEasy—
Not attempted202Event buffer during a masked intervalInterrupts & concurrencyNumericEasy—
Not attempted216Keep the ISR boundedInterrupts & concurrencyMCQEasy—
Not attempted253Single-producer single-consumer ring contractInterrupts & concurrencyExplainMedium—
Not attempted254Choosing critical-section scopeInterrupts & concurrencyExplainMedium—
Not attempted255A consistent timestamp snapshotInterrupts & concurrencyExplainMedium—
Not attempted256Bounded deferred interrupt workInterrupts & concurrencyExplainMedium—
Not attempted257Debouncing without delaying an ISRInterrupts & concurrencyExplainMedium—
Not attempted258Priority grouping and preemptionInterrupts & concurrencyExplainMedium—
Not attempted259A memory barrier is not a lockInterrupts & concurrencyExplainMedium—
Not attempted260Double buffering a live sample streamInterrupts & concurrencyExplainMedium—
Not attempted261Avoiding the sleep-entry raceInterrupts & concurrencyExplainMedium—
Not attempted262Interrupt latency measurement pointsInterrupts & concurrencyExplainMedium—
Not attempted346Publish a buffer safelyInterrupts & concurrencyExplainEasy—
Not attempted347Latency budgetInterrupts & concurrencyExplainEasy—
Not attempted374Cancel and completion both call the clientInterrupts & concurrencyDebugMedium—
Not attempted375A FIFO watermark strands a short packetInterrupts & concurrencyDebugMedium—
Not attempted376An emergency log deadlocks in the fault handlerInterrupts & concurrencyDebugMedium—
Not attempted377The inter-core interrupt carries stale dataInterrupts & concurrencyDebugMedium—
Not attempted378An interrupt migrates to the wrong local bufferInterrupts & concurrencyDebugMedium—
Not attempted430Tail chaining on Cortex-MInterrupts & concurrencyMCQEasy—
Not attempted431Choosing edge or level interrupt semanticsInterrupts & concurrencyMCQEasy—
Not attempted432A nested ISR corrupts a helper's stateInterrupts & concurrencyMCQEasy—
Not attempted433Interrupt work and a queue handoffInterrupts & concurrencyMCQEasy—
Not attempted434Exception stack selectionInterrupts & concurrencyMCQEasy—
Not attempted435Unmasking an already pending interruptInterrupts & concurrencyMCQEasy—
Not attempted436Non-maskable does not mean harmlessInterrupts & concurrencyMCQEasy—
Not attempted437Capture timestamp versus ISR entry timeInterrupts & concurrencyMCQEasy—
Not attempted503Interrupt preemption response boundInterrupts & concurrencyNumericEasy—
Not attempted504Hardware capture time conversionInterrupts & concurrencyNumericEasy—
Not attempted505Maximum service burst in a budgetInterrupts & concurrencyNumericEasy—
Not attempted506Event coalescing reductionInterrupts & concurrencyNumericEasy—
Not attempted532An interrupt cancellation raceInterrupts & concurrencyExplainMedium—
Not attempted533An ISR-safe emergency logging pathInterrupts & concurrencyExplainMedium—
Not attempted534A hardware FIFO watermark trade-offInterrupts & concurrencyExplainMedium—
Not attempted535A multiprocessor interrupt handoffInterrupts & concurrencyExplainMedium—
Not attempted536Interrupt affinity and per-core stateInterrupts & concurrencyExplainMedium—