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


Please Help Members By Posting Answers For Below Questions

Can threading stop hair growth?

491


What is a lightweight thread?

433


Can we create a thread inside a thread?

476


What are concurrent threads?

444


How do I check my cpu threads?

412






Why are user level threads faster than kernel level threads?

457


Do threads share memory?

432


Which one is better thread class or runnable interface?

426


How do I see threads in linux?

445


What is the difference between user level thread and kernel level thread?

435


What is thread and process?

469


Can a process have 0 threads?

446


how will you distinguish if it is a process or a thread, provided you know pid in linux operating system?

475


What are the two types of threads?

474


What is thread explain the threads in linux?

411