What is difference between thread and process?


 Ans) Differences between threads and processes are:-
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 do not affect child processes. 

People who read this post also read :



4 comments:

Great! By the way, I was having some issues with my microsoft erp today at work, but luckily dynamics 365 support team took care of them immidiately. Well done!

Thanks for the post, I am techno savvy. I believe you hit the nail right on the head. I am highly impressed with your blog. It is very nicely explained. Your article adds best knowledge to our Java Online Training from India. or learn thru Java Online Training from India Students.

or learn thru JavaScript Online Training from India. Appreciating the persistence you put into your blog and detailed information you provide. Kindly keep blogging.

Database Management System Latest Technology Information Latest Technology Information The website Provide Database Management System includes, Besides Theoretical Portion, Complete Articles on SQL and MS Access so that the readers may get a practical knowledge of databases.


http://itused.net

Post a Comment

Share

Twitter Delicious Facebook Digg Stumbleupon Favorites More