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
What is the use of inet_addr() Function?
How does socket communication work?
How to Form Local Addresses?
How to open socket file in linux?
What does socket consist of?
What is socket and how it works?
What is the use of PF_INET and SOCK_STREAM?
What is the use of recvfrom(2) Function?
How to Perform Endian Conversions?
How to Define a Socket?
HOW TCP/IP Handles Duplicated Packets?
What is socket connection?
What is the use of PF_INET and SOCK_DGRAM?
How TCP/IP Handles Flow Control?
What is the difference between socket and port?