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.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment