Which of the following states the correct - difference between the process and thread?

53. Which of the following states the correct - difference between the process and thread?

  1. A thread is a program in execution while a process is a flow of control within a thread
  2. A process is a program in execution while a thread is a flow of control within a process
  3. A thread does not share the CPU as processes do
  4. Threads share the CPU as processes do

Select the correct answer.

  1. Only (i)
  2. Only (iii)
  3. Both (i) and (iii)
  4. Both (ii) and (iv)

Answer: D) Both (ii) and (iv)

Explanation:

A process is a program in execution while a thread is a flow of control within a process also; Threads share the CPU as processes do.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.