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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the ways to infect the system by virus?

551


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

1828


Explain about dynamic memory allocation algorithm?

492


Explain the difference between fat & ntfs?

519


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

485






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

514


Let us suppose one application needs 2GB RAM to run and dependent plugins will be load while running application. Here My doubt is how many processes will create for this application. I know the concept of virtual memory, which will provide RAM on demand. My straight forward question is what is the size of the process and is it single process will create by operating system to complete the task of my application.??? Thanks in Advance.

2053


Can you tell which dlls are used for SDK?

577


Where the system time is stored? In processor or in separate timer ic for that?

494


some os have a tree structure file system that limits the depth of a tree and small number of levels.what limit does this have on user? how does this simplify file system design?

1316


Explain the difference among deadlock avoidance, detection and prevention?

556


Explain the difference between ntfs & fat file systems?

524


Tell me what are the hardware problem you face regularly in your organization?

486


Define dynamic memory allocation algorithm?

536


what is a property sheet?

1928