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

What is the difference between a process task and threads
and what are the things that are acquired by the child
process from the parent process

Answer Posted / renjith

Process is a program in execution or we can say that
process is an instance of a program. Program can have any
number of processes. A new process can be created using
fork()system call. Every process has its own Address space.
All the process Information are stored in a DataStucture
called Process Descriptor or Task Control block or Process
control block or task_struct. when a child process is
created , a seperate address space is created for child
process but it have the same memory image as that of parent.
Child process can share all the resoruces with parent.
After that any exec() executed , then child process
replaces the contents with the new program.
Thread is a light-weight process. We can say that thread is
with in the process . A process can have any number of
threads. All the threads uses address space of the process.
The main difference between Process and a thread is , CPU
switch from one process to another need save the current
information in Process Descriptor and load the information
of new process. But CPU switch from one thread to another
is simple.

Is This Answer Correct ?    24 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to Perform Endian Conversions?

1362


Can you send and receive on the same socket at the same time?

808


How to perform I/O on Sockets?

1431


How does socket communication work?

862


Why socket programming is used?

863


How to Write a UDP Datagram Client?

1378


How to use the PF_LOCAL and AF_LOCAL Macros?

1540


What is a socket in linux?

924


HOW TCP/IP Handles Duplicated Packets?

1606


What is the use of inet_aton() Function?

1568


How to Obtaine the Socket Address?

1433


Why bind system call is required in socket programming?

808


How to Understand Network Byte Order?

1348


How TCP/IP Handles Flow Control?

1582


How to Understand Netmask Values?

1305