Sunday, August 23, 2009

Q. What is the disadvantage of threads?
Ans. The Main disadvantage of threads is : Threads is operating system dependent.


Q. How to make application thread-safe ?
Ans. Using synchronized keyword you can make thread safe application and you can also use wait(), notify(), notifyall(). All these methods are of Object class.

No comments:

Post a Comment