What is the use of thread over process?

Answer Posted / angel

Thread is a light weight process. It executes some line of
code independent of current execution. Threads are faster is
processing as compared to process. Process have their own
address space but threads share the same address space of
process under which process they are. So context switching
happened much faster in case of threads.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we need thread pool?

452


Can threading stop hair growth?

493


What is a thread in c?

435


Are processes faster than threads?

434


Are pthreads kernel threads?

388






Do threads share page table?

449


Does linux have threads?

433


What is user level and kernel level thread?

411


Does hyperthreading reduce performance?

438


Is c++ multithreaded?

421


What is context switching between threads?

455


What are threads cpu?

436


What are the advantages of threads over processes?

458


What are the process states in linux?

387


Can two threads execute at the same time?

431