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 / dheeraj gahtori

Process is an executing program with several components and
proprieties.
1.exec thread
2. PID
3. priority
4. memory context
5. enviornment
6. file descriptors
7. security credentials.
processes began through a process called "fork and exec".
that is when one command starts another, the child process
first forks , the kernel copying over pages of memory from
the present process to a new location for the child process.
The child then execs, executing the new command and
overwriting the data.the thread is , which controls the flow
of the process. A process needs at least one thread.

Is This Answer Correct ?    6 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of inet_aton() Function?

1136


How to Form Local Addresses?

1109


Are sockets bidirectional?

509


How to Initialize a Wild Internet Address?

1126


What is socket linux?

546






How do udp sockets work?

560


What is the difference between socket and port?

558


How to Bind a Specific Interface Address?

1065


What are the best linux system programming interview questions you've ever asked or been asked?

532


How to use the socket(2) Function?

1070


How to Write a UDP Datagram Server?

1013


How to Specify an X.25 Address?

1093


What is the use of PF_INET or AF_INET?

1189


How to test socket connection in linux?

560


What is the use of inet_addr() Function?

1055