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

How does socket communication work?

576


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

532


How to test socket connection in linux?

560


What is the Use of the inet_makeaddr() Function?

1040


How to Bind Addresses to a Socket?

1001






How to Initialize a Wild Internet Address?

1126


How to Form Traditional Local Addresses?

1017


What are Anonymous Calls?

1066


How socket is created?

532


Can a socket have multiple connections?

551


What are the Advantages of TCP/IP?

1205


What is the Use of the inet_ntoa() Function?

998


What is a socket in linux?

579


How to Define a Socket?

1096


How TCP/IP Handles Lost Packets?

1322