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
What is the Use of the inet_makeaddr() Function?
How to Reply to a Wild Address?
What is the Use of the inet_ntoa() Function?
How to Examin the Generic Socket Address?
How socket is created?
How to Close Sockets?
How to Specify an X.25 Address?
What is the Use of the inet_netof() Function?
What are Reserved IP Numbers?
How TCP/IP Handles Lost Packets?
How to Test the Datagram Client and Server?
Can you send and receive on the same socket at the same time?
Are sockets full duplex?
How to open socket file in linux?
How to Form Abstract Local Addresses?