Mode switch among threads
Tell reasons why a Mode switch among threads may be cheaper than a Mode switch among processes?
Expert
1. Reason – the control blocks for processes are bigger than for threads (store more state information), therefore the amount of information to move throughout the thread switching is less than for process context switching
2. Reason – the main reason is that the memory management is simpler for threads than for processes. Threads share their memory so throughout mode switching, memory information ought not to be exchanged/changed, pages & page tables do not have to be switched, etc. It makes the thread context switch much cheaper than for processes. In particular case of processes the memory pieces (pages) require to be exchanged, etc.
Behavior Approximation: Abstractions are also described in term of the relative behavior of the abstract system versus the concrete system. A program’s “behavior” is defined as the set of possible execution paths, also called traces
please provide detail answers for the assignment
Normal 0 false false
Normal 0
18,76,764
1928250 Asked
3,689
Active Tutors
1447347
Questions Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!