Why context switching is faster in threads?



Why context switching is faster in threads?..

Answer / Neeraj Umar

Context switching between threads is generally faster than context switching between processes because threads share the same memory space and have smaller contexts to switch. Context switching for threads primarily involves saving and restoring thread-specific registers, while process context switches require saving and restoring the entire processor state.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Linux Threads Interview Questions

What are the benefits of multithreading?

1 Answers  


Does linux have threads?

1 Answers  


How many threads can run on a single processor?

1 Answers  


Why do we need thread pool?

1 Answers  


Is python a single thread?

1 Answers  


What are linux kernel threads?

1 Answers  


How can i recover the linux system after it was crashed. I want step by step process.

1 Answers   Wipro,


How many threads does an i7 8700k have?

1 Answers  


Can we create a thread inside a thread?

1 Answers  


Why are threads expensive?

1 Answers  


What are kernel threads?

1 Answers  


Can threading damage skin?

1 Answers  


Categories