Say we have three threads T1, T2 and T3 which
perform sequentially one after another is their any benefit
of using thread over here rather than having a single
process.

Answer Posted / sh

Question is not about advantages of threads over process,
it's explicitly sayed sequential execution so though t1
blocks for unknown time T2 will be executed only after T1
so there is no point in going for 3 threads over having a
single process, but if was not the above case then it's
highly recommended to have three threads,

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is hyperthreading turned off?

462


How many threads can one core handle?

441


Are goroutines threads?

400


Can two threads share the same stack?

395


How do I check my cpu threads?

414






Do threads run in parallel?

447


Why are threads used?

440


What is a thread os?

445


Can hyper threading hurt performance?

422


How do you create a thread?

441


What is thread and process?

470


What are the disadvantages of threading?

436


Is face threading bad?

433


Whats better threading or waxing?

445


What is kernel level thread?

433