2. Relationship between threads and process.

A process is a program under execution. It is an abstraction of a stand alone computer. They do not share memory but can cmommunicate by sending messages to each other. This inter process communication is based on the way in which hosts on a netword can communicate with one another.
    A thread is a software entity that can share memory and run concurrently, some charachetristics are common to both threads and proceses but same memory space can be shared by multiple threads.
    It is possible to execute a thread at any place within the code space of a process. Exactly similar code may or may not be executed at the same time, but if they execute the same code, it doesn’t indicate the same execution but specifies fetching and executing the same instruction within different contexts.

0 comments:

Post a Comment

 
Design by Wordpress Theme | Bloggerized by Free Blogger Templates | coupon codes