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 / vivek
here T1, T2 and T3 as a thread consumes less memory and
more speed
but as a process it consumes more memory.
Example:
Multiple threads can be run within a single memory
allocations.
but process needs seperate memory allocations for each
process.
| Is This Answer Correct ? | 4 Yes | 20 No |
Post New Answer View All Answers
Are goroutines threads?
Do threads share page table?
Are threads independent?
How many threads can you run?
Does htop show threads?
What are the two methods to create threads?
What are the benefits of multithreading?
Why is hyperthreading turned off?
Why are threads useful?
Do threads share variables?
What is kernel level thread?
Does threading damage the skin?
How does thread pool keeps the thread alive?
What does 4 cores and 4 threads mean?
Do threads get their own pid?