Je Rog
Je Rog

Reputation: 6031

How are different processes scheduled to run on CPU,will a multi-threaded process hopefully get more CPU time?

For simplicity ,let's suppose it's a single core CPU.

Will a multi-threaded process hopefully get more CPU time?

Upvotes: 1

Views: 91

Answers (1)

Waldheinz
Waldheinz

Reputation: 10487

Generally, running a multi-threaded application on a single core will

  • result in slight slowdown for CPU - bound applications because of the scheduling overhead and
  • a possible speedup for (blocking) IO - bound applications, because the the IO can be done in parallel

Upvotes: 1

Related Questions