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
How to Form Local Addresses?
How to Bind Addresses to a Socket?
What is the use of PF_INET and SOCK_DGRAM?
Can a socket have multiple connections?
How to Specify the Domain of a Socket?
How to Obtaine the Socket Address?
How to Perform Endian Conversions?
What are sockets used for?
How to perform I/O on Sockets?
What is socket linux?
How to Specify an X.25 Address?
What are Anonymous Calls?
How to Manipulate IP Numbers?
How to Bind a Specific Interface Address?
How to Close Sockets?