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

What is difference between processes and threads?

428


Why do we use threads?

454


Can two threads share the same stack?

393


Why are threads used?

434


Why do we use thread in sleep?

425






Do threads share program counter?

460


Do threads share file descriptors?

461


is there a command line shortcut to the login directory

1214


What is kernel level thread?

429


What are the two types of threads?

471


How does thread pool keeps the thread alive?

411


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

471


Are cpu threads important?

429


What does 4 cores and 4 threads mean?

418


Are threads processes?

424