Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


List reasons why a Mode switch between threads may be
cheaper than a Mode switch between processes?

Answers were Sorted based on User's Feedback



List reasons why a Mode switch between threads may be cheaper than a Mode switch between processes..

Answer / yo

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.

Is This Answer Correct ?    19 Yes 0 No

List reasons why a Mode switch between threads may be cheaper than a Mode switch between processes..

Answer / nirmalraj

Process :Generally heavy weight by, the PCB holds kernel
objects the values generally referred as state information.

A application can be divided into two types in design phase:

1.Process - may affect application/program architecture
2.Threads - didn't affect architecture

Threads typically are spawned for a short-term benefit where
as process for long-term even the thread share its own
process address space is never larger than 4GB.

A single process may hold "n" threads so exchanging value
between process; then the cpu spend most of its time for
swapping it leads to thrasing definitely.


Threads easily exchange their locale variables within its
scope but exchange value between process stolen more cpu cycles.

Is This Answer Correct ?    9 Yes 2 No

Post New Answer

More SDK Interview Questions

absolute path gives the location a file or directory in reference to a rile directory while relative path is a path given file starting from another file. explain?

0 Answers   NIBS,


what is FAT?.

12 Answers   Campus Interview, Mascot, MIS, Nile Bank,


how make a bootable dick

0 Answers   Accenture, HCL, Wipro,


Can you tell which dlls are used for SDK?

0 Answers   C DAC, CDAC,


Explain how is the process address space handled during process migration?

0 Answers  


if you are using external package for configuring send mail what is the name of the package?

0 Answers  


What is direct mount and indirect monut?

0 Answers  


What is the difference among deadlock avoidance, detection and prevention?

3 Answers  


can you create con folder in windows, if not why?

3 Answers  


What is Awk and Sed?

1 Answers  


If you do not have cd drive then how will u format c drive?

0 Answers  


where the system time is stored? In processor or in Seprate timer ic for that?

2 Answers  


Categories