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 / amit

What is the difference between a process task and threads ?

process and task as synonymous. One or more threads
together form a process. The threads, two or more belong to
same process, share same address space of the process and
can access all the global variable of the process.
Where as two processes can't access each other's address
space and hence cant access their global variable. Two
processes can talk with each other using IPC.

what are the things that are acquired by the child
process from the parent process?

File descriptors [including socket descriptor].
The whole text segment.
Environment variables.
PPID is PID of parent process.

Is This Answer Correct ?    0 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the setservent(3) Function?

1151


How to Form Abstract Local Addresses?

993


What is the use of SOCK_STREAM Socket Type?

1023


What is the use of inet_addr() Function?

984


How to Test with No Server?

1097






How TCP/IP Handles Sequencing?

1155


What are Private IP Numbers?

891


How to Examin the Generic Socket Address?

992


How to open socket file in linux?

498


How to Obtaine the Socket Address?

1020


What is the use of inet_aton() Function?

1068


How to Perform Endian Conversions?

959


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

462


Can a socket have multiple connections?

472


What is the use of PF_INET and SOCK_STREAM?

1000