Compare Thread and process

          

Compare Thread and process

<<Previous   Next>>

OS - Compare Thread and process. - Feb 27, 2010, 11:35 am by Rajmeet Ghai

Compare Thread and process.

A thread is associated with a process. A process can have multiple threads running. When an application is started, a process is invoked and the process owns the memory, resources, and threads of execution that are associated with a running instance of an executable program. The program runs until the thread is associated with that process. A thread is the smallest unit of execution that is intact to a process.

OS - Compare Thread and process. - Oct 29, 2008, 17:35 pm by Amit Satpute

Compare Thread and process.

Threads
Share address space
Have direct access to data segment of its process
Can communicate with other threads of the same process
Have no overhead
If a main thread gets affected, other threads to can get affected

Processes
Have own address space
Have own copy of data segment of the parent process
Processes must use IPC for communication within sibling processes
Have considerable overhead
Change in a parent process has no effect on the child processes. 

<<Previous   Next>>
 



Write your comment - Share Knowledge and Experience


 

 
Latest placement tests
Latest links
 
Latest MCQs
» General awareness - Banking » ASP.NET » PL/SQL » Mechanical Engineering
» IAS Prelims GS » Java » Programming Language » Electrical Engineering
» English » C++ » Software Engineering » Electronic Engineering
» Quantitative Aptitude » Oracle » English » Finance
Home | About us | Sitemap | Contact us | We are hiring