All jobs / Embedded / hardware / RTOS

Embedded / hardware interview question · 1–3 years

Two tasks write a global “state” byte. What is the grown-up move?

The strongest answer

A queue or a critical section I can name — I do not add a delay to “let the other one finish”

Why it works

Exactly. A real exclusion. Volatile is visibility, not a lock. Sleeps and prints are folklore.

What a good answer covers

Answers that fall short

Who gets asked this

More RTOS questions