Machine-translated by Google. Questions are authored in English.
Top

Discussion

Match the state with what ends it.

1. Ready   2. Blocked   3. Suspended

P. An explicit resume by another task   Q. Being selected by the scheduler   R. The awaited event or a timeout

  • A.1-Q, 2-P, 3-R
  • B.1-P, 2-R, 3-Q
  • C.1-Q, 2-R, 3-P
  • D.1-R, 2-Q, 3-P

Answer: C

Correct answer: 1-Q, 2-R, 3-P

Each state ends in its own way. A ready task waits only for the scheduler to select it. A blocked task waits for the event it asked for, or for its timeout to expire. And a suspended task waits for another task to resume it explicitly - no event or timeout will do it, which is what distinguishes suspension from blocking.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.