What is advantage of using threads?

Answer Posted / rajashree

a)lower context switching over head.

b)shared state:
allowed concurrent instance of the server to communicate
easily with each other

c)linux supports the POSIX thread standard
i)pthreads library.
ii)portable across most unix platform.

Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is meant by final class?

567


Is java free for commercial?

493


Difference between abstract and concrete class ?

583


When the constructor of a class is invoked?

597


What are daemon Threads in java?

614






What is the concatenation operator in java?

580


What do you mean by compiler?

587


What is the role of garbage collector in java?

495


Why java is a platform independent? Explain

536


what is difference between equals and ==?

592


What is meant by javabeans?

616


What language is an assembler written in?

559


Difference between a process and a program?

619


How does enum work in java?

552


Why we cannot override static method?

563