--- Which of the statement(s) given below is/are correct regarding a real time OS?
Qualcomm technical mcq question, verified with a worked answer. Free to practise - no sign-up.
Which of the statement(s) given below is/are correct regarding a real time OS?
I) A process can be present in more than one state at a time.
II) Processes can be scheduled by the scheduler in their "wait" state.
Show answer & explanation
Statement (I) is false because a process can only exist in one state at any given time in both real-time and general-purpose operating systems. Process states (ready, running, waiting, terminated) are mutually exclusive. Statement (II) is false because processes in the "wait" state cannot be scheduled by the scheduler; they remain blocked until the event they're waiting for occurs. Only processes in the "ready" state are eligible for scheduling.
Step-by-step Derivation:
Process State Model Analysis:
Statement (I): A process can be present in more than one state at a time
- Process states are: New → Ready → Running → Waiting → Terminated
- At any instant, a process occupies exactly ONE state
- A process cannot be both Running and Waiting simultaneously
- This applies to all OSes, including real-time OS
- Conclusion: FALSE
Statement (II): Processes can be scheduled by the scheduler in their "wait" state
- Waiting/Blocked state: Process is waiting for I/O or event completion
- Scheduler only selects processes from the Ready queue
- Processes in Wait state are not in the ready queue
- They transition to Ready only after the event they wait for completes
- A waiting process cannot be scheduled until it becomes ready
- Conclusion: FALSE
Final Answer: Neither (I) nor (II) is correct → Option A