top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What are the disadvantages of context switching ?

0 votes
2,988 views
What are the disadvantages of context switching ?
posted Dec 28, 2014 by Vikram Singh

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote

Context switching has a cost in performance. Directly due to running the task scheduler, translate and look aside buffer flushes, and indirectly due to sharing the CPU cache between multiple tasks. These are pure overheads. Thus if it is possible threads should be used, instead of processes, since context switching threads have lower cost compared to process' context switching.

answer Dec 29, 2014 by Prakash
...