Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is the difference between a 'thread' and a 'process'?

Answer Posted / swaroopa

Process is a program in execution whereas thread is a
separate path of execution in a program. Process & Thread
share almost all datastructure except (thread has it's own
register & stack area). Process is a program under
execution,but thread is a light weight process which has
seperate way of execution.Threads are part of
process.Single process can contain number of threads at a
time.

A process is a collection of virtual memory space, code,
data, and system resources.

All thread with in a process share process
instruction,code & data segment,open file descriptor,signal
handler,userID and GroupID.

Thread has its own set of register including program
counter,stack pointer

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is console line?

965


What is an inode block?

1055


Why should we use shell scripts?

1054


How do you debug a script?

1070


Is shell scripting useful?

1057


What is the command to find out today's date?

1141


What is the use of a shebang line?

1197


How do I open a jshell in cmd?

1249


How to print pid of the current shell?

995


What is meant by dos operating system?

1056


What does .sh file contain?

959


What can scripts do?

1102


Tell something about the super block in shell scripting?

1035


What is bash shell command?

1014


Explain about login shell?

1122