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
What is difference between thread and runnable?
What are processes and threads?
How many goroutines are in a thread?
Are processes faster than threads?
How do cpu threads work?
how will you distinguish if it is a process or a thread, provided you know pid in linux operating system?
What is user level and kernel level thread?
Is face threading safe?
What does 4 cores and 4 threads mean?
Why do we use thread in sleep?
Can hyper threading hurt performance?
Can a thread have multiple processes?
Does linux have threads?
Do threads count as cores?
What do cores and threads mean?