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
How to use the PF_LOCAL and AF_LOCAL Macros?
What is the use of SOCK_STREAM Socket Type?
How to Deal with Duplicated Sockets?
Are sockets bidirectional?
How to Test the Datagram Client and Server?
HOW TCP/IP Handles Duplicated Packets?
What is socket and how it works?
How to Specify an X.25 Address?
What is the use of PF_LOCAL and SOCK_STREAM?
How to Perform Input/Output of Datagrams?
How to look up a Service by Port and Protocol?
What is the use of PF_INET and SOCK_STREAM?
How to Bind a Specific Interface Address?
What is the use of setprotoent(3) Function?
How to Test with Other IP Numbers?