Computer Organization & Embedded System — Real-Time Operating and Control System, NEC licence examination syllabus (Nepal Engineering Council).
The classic problems that show up in every OS exam, worldwide.
A race condition happens when the result of concurrent execution depends on timing/order — fixed by ensuring mutual exclusion over the critical section.
MutexBinary lock, ownership-based — only the thread that locked it can unlock it.
Binary semaphore0 or 1, similar to mutex but no ownership concept.
Counting semaphoreAllows N concurrent users of a resource.
Priority inversion: a high-priority task gets blocked waiting on a resource held by a low-priority task — fixed by priority inheritance (temporarily boost the low-priority task's priority to that of the waiting high-priority task, so it finishes and releases the resource faster).
Producer-ConsumerProducer fills a buffer, consumer empties it — needs semaphores to prevent producer overfilling or consumer reading an empty buffer.
Readers-WritersMany readers can read simultaneously, but a writer needs exclusive access.
Dining Philosophers5 philosophers, 5 forks, each needs 2 forks to eat — classic deadlock-risk scenario if everyone grabs their left fork simultaneously.
Create a free account to tick topics off, take notes as you read, watch the video lessons and get a day-by-day study plan built around your exam date.
Loading…