ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
Google
 
Categories  >>  Software  >>  Operating Systems  >>  Operating Systems General Concepts
 
 


 

 
 Windows interview questions  Windows Interview Questions
 Linux interview questions  Linux Interview Questions
 Unix interview questions  Unix Interview Questions
 Solaris interview questions  Solaris Interview Questions
 RTOS interview questions  RTOS Interview Questions
 Bulnex interview questions  Bulnex Interview Questions
 Operating Systems General Concepts interview questions  Operating Systems General Concepts Interview Questions
 Data Structures interview questions  Data Structures Interview Questions
 Operating Systems AllOther interview questions  Operating Systems AllOther Interview Questions
Question
List reasons why a Mode switch between threads may be
cheaper than a Mode switch between processes.
 Question Submitted By :: Shiva Kumar
I also faced this Question!!     Rank Answer Posted By  
 
  Re: List reasons why a Mode switch between threads may be cheaper than a Mode switch between processes.
Answer
# 1
1.  reason - the control blocks for processes are larger 
than for threads (hold more 
	state information), so the amount of information to 
move during the thread 
	switching is less than for process context 
switching 
2.  reason - the major reason is that the memory management 
is much simpler for 
threads than for processes. Threads share their memory so 
during mode switching, memory information does not have to 
be exchanged/changed, pages and page tables do not have to 
be switched, etc. This makes the thread context switch much 
cheaper than for processes. In case of processes the memory 
pieces (pages) need to be exchanged, etc. (Will talk about 
the details in few weeks). 
3.  reason - threads do not have to worry about accounting, 
etc, so do not have to fill 
	out all the information about accounting and other 
process specific information in 
	their thread control block, so keeping the thread 
control block consistent is much 
	faster 
 





4.  reason - threads share files,  so when mode switch 
happens in threads, these 
information stay the same and threads do not have to worry 
about it   (similar to accounting information) and that 
makes the mode switch much faster. 
But the most expensive operation is truly the memory 
aspect.
 
Is This Answer Correct ?    0 Yes 0 No
Kumar
 

 
 
 
Other Operating Systems General Concepts Interview Questions
 
  Question Asked @ Answers
 
What is busy waiting?  2
What are the impact on network when gc,schema master,domainnaming master,rid master,pdc emulator,infrastructure master is down? HCL1
What are the key object oriented concepts used by Windows NT?  1
Explain the difference between micro-kernel and macro-kernel? Give an examples of micro-kernel and macro-kernel?  1
What is software life cycle?  2
What are the different functions of Syntax phase, Scheduler? Teradata1
how does a virus infect the system Sutherland4
which is best among semaphores and mutexes? HP2
Explain the difference between a MONOLITHIC KERNAL and a MICROKERNAL?  1
Explain the working of Virtual Memory? Verizon1
what is Compiler?  3
List reasons why a Mode switch between threads may be cheaper than a Mode switch between processes.  1
Paging a memory management function, while multiprogramming a processor management function, are the two interdependent? IBM1
What is mutant?  2
Critical section is? Wipro2
What are rings in Windows NT?  1
what is the difference btn collision domain and broad cast domain?  2
What is the resident set and working set of a process?  1
What are the typical elements of a process image?  1
unix system is a)multi processing b)multi processing ,multiuser c)multi processing ,multiuser,multitasking d)multiuser,multitasking eInfochips2
 
For more Operating Systems General Concepts Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com