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...


Describe the difference between a Thread and a Process?

Answers were Sorted based on User's Feedback



Describe the difference between a Thread and a Process?..

Answer / chandra sekhar dola

- A Process has its own memory space, runtime enivorment
and process ID. A Thread runs inside a Process and shares
its resources with other threads.

- A thread is a path of execution that run on CPU,
a proccess is a collection of threads that share the same
virtual memory. A process have at least one thread of
execution, and a thread always run in a process context.

- Process is unit of allocation while Thread is
unit of execution. Each process has one or more threads.
Each thread belong to one process

Is This Answer Correct ?    13 Yes 3 No

Describe the difference between a Thread and a Process?..

Answer / saisudhakar

exact it is right.
Thanks a lot
after a long time i found the answer for this question.
thankx

saisudhakar

Is This Answer Correct ?    4 Yes 2 No

Describe the difference between a Thread and a Process?..

Answer / anubhav

Q. What is the diff b/w Thread and Process?
Solution:
A Process has its own memory space, runtime environment
and process ID. A Thread runs inside a Process and shares its resources
with other threads.

Thread is a path of execution that run on CPU,a proccess is a collection
of threads that share the same virtual memory. A process have at least one thread of execution, and a thread always run in a process context.

Process is unit of allocation while Thread is unit of execution. Each process has one or more threads. Each thread belong to one process


The major difference between threads and processes is

1. Threads share the address space of the process that
created it; processes have their own address.

2. Threads have direct access to the data segment of its
process; processes have their own copy of the data segment
of the parent process.

3. Threads can directly communicate with other threads of
its process; processes must use interprocess communication
to communicate with sibling processes.

4. Threads have almost no overhead; processes have
considerable overhead.

5. New threads are easily created; new processes require
duplication of the parent process.


6. Threads can exercise considerable control over threads of
the same process; processes can only exercise control over
child processes.

7. Changes to the main thread (cancellation, priority
change, etc.) may affect the behavior of the other threads
of the process; changes to the parent process does not
affect child processes.

8. Thread is light weight process having its own stack but collection of related threads can share same execution memory. process is program or part of program under execution .every process can have its own execution environment.

9. A thread is code that is to be serially executed within a process. A process is a collection of virtual memory space, code, data, and system resources.

Is This Answer Correct ?    2 Yes 0 No

Describe the difference between a Thread and a Process?..

Answer / saiish bhat

Thread is the path of execution that run on cpu.
process is a collection of threads that share the same
virtual memory.

Is This Answer Correct ?    4 Yes 3 No

Post New Answer

More ASP.NET Interview Questions

What is enableviewstate in asp net?

0 Answers  


What is viewstate?

6 Answers   Abacus, Microsoft, Sopra,


In which interface the template of any control like Gridview would Initiate?

2 Answers  


What are various authentication mechanisms in ASP.NET ?

4 Answers   TCS,


What are the differences between the response.write() and response.output.write()?

0 Answers  


Define the types of configuration files.

0 Answers  


Difference between Array and ArrayList? How Array is benifitful than ArrayList?

3 Answers   Tech Mahindra,


What are session state modes? List some of the important session state modes of asp.net.

0 Answers  


Take one textbox if I am inputting abc alphabet in capital letter or in small letter on the button click it will be bcd or if I enter 123 and it would be 234 like that in ASP.NET?

3 Answers   DNS,


What is web.config and machine.config ?

3 Answers   Collabor, NDPL, TCS,


how can we create wcf in asp.net and how can we cll that in to asp.net application?plsss tel me each step clearly

0 Answers  


What is serialization?

5 Answers   Piramal Healthcare,


Categories