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

is there a command line shortcut to the login directory

1208


Can python be multithreaded?

422


How many threads does an i7 8700k have?

418


Can we overload run method of thread?

430


Are more threads better?

423






Do threads have pids?

401


Do threads share memory?

422


Does threading damage the skin?

428


Do threads run in parallel?

431


What are the process states in linux?

377


What are kernel threads?

390


What are the advantages of threads?

466


How many threads can one core handle?

428


What is the difference between process and thread in linux?

418


Why context switching is faster in threads?

432