2.12 End-of-Chapter Exercises

2.12.1 Questions

1. Consider a single-core processor system with three active processes {A, B, C}. For each of the process state configurations a-f below, identify whether the combination can occur or not. Justify your answers.

ProcessProcess state combination
abcdef
ARunningReadyRunningBlockedReadyBlocked
BReadyBlockedRunningReadyReadyBlocked
CReadyReadyReadyRunningReadyBlocked

t0020

2. For a given process, which of the following state sequences (a-e) are possible? Justify your answers.

(a) Ready → Running → Blocked → Ready → Running → Blocked → Running

(b) Ready → Running → Ready → Running → Blocked → Ready → Running

(c) ...

Get Systems Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.