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 / kiran kumar yakkala

process-independent flow of control,created by fork
(),copies the address space of parent process(all the
contents of parent process i.e data,text,bss ..),resources
are too many, scheduled by system scheduler(cpu)

thread-independent flow of control,created by pthread or
kthreads, resources are less(just pid,ppid,own stack..)so
thats why light weight process, scheduled by thread library
which you are using (ex. pthread , kthread).

usually process can have any no of threads
but threads cannot have process( general rule).

Is This Answer Correct ?    4 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Are sockets full duplex?

489


How to Test with No Server?

1097


What is socket and how it works?

477


How to Form Abstract Local Addresses?

993


What is the Use of the inet_ntoa() Function?

938






What are Anonymous Calls?

994


What is the setservent(3) Function?

1151


What is the use of endservent(3) Function?

1176


What is the use getservent(3)?

1145


How to Generate Addresses?

977


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

462


How to Form Internet (IPv4) Socket Addresses?

998


What are Private IP Numbers?

890


What is socket abstraction?

487


How to Close Sockets?

1033