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

What is the use of inet_network()?

1003


How to Write a UDP Datagram Server?

957


What is socket connection?

499


Are sockets full duplex?

499


What is the use of PF_INET or AF_INET?

1110






What are Address Conversion Functions?

966


how to get client port number in server socket programming??

1969


How to open socket file in linux?

510


How to perform I/O on Sockets?

923


What is socket and how it works?

489


How TCP/IP Handles Sequencing?

1159


How socket is created?

475


Why bind system call is required in socket programming?

457


What is the use of inet_aton() Function?

1076


Are sockets bidirectional?

443