What is the difference between a process task and threads?
Submitted by: Administratorprocess 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.
Submitted by: Administrator
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.
Submitted by: Administrator
Read Online Linux Socket Programming Job Interview Questions And Answers
Top Linux Socket Programming Questions
☺ | 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? |
☺ | What is the difference between fork() & exec()? |
☺ | What is the difference between socket & port? |
☺ | Why bind system call is required in socket programming? |
☺ | How to get client port number in server socket programming? |
Top Linux OS Categories
☺ | Device Drivers Interview Questions. |
☺ | Linux OS Management Interview Questions. |
☺ | Linux Makefile Interview Questions. |
☺ | Linux Environment Interview Questions. |
☺ | Linux OS Shell Interview Questions. |