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 setprotoent(3) Function?
How to Allocate IP Addresses?
How to Test with Other IP Numbers?
Are udp sockets bidirectional?
Why socket programming is used?
How to Form Traditional Local Addresses?
How to Specify an X.25 Address?
How to use the socket(2) Function?
What is the use of PF_INET or AF_INET?
What is the use of PF_INET and SOCK_STREAM?
How to open socket file in linux?
What is AF_UNSPEC Address?
What is the difference between socket and port?
What is the difference between socket & port?
What is the use of recvfrom(2) Function?