A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Java in General
Joined: Sep 02, 2006
Sep 30, 2006 01:03:00
we use wait.notify,notifyall in threads.but why we have these three methods in object class rather than in thread class
Joined: Feb 24, 2006
Sep 30, 2006 01:20:00
Every object has a lock of its own. When you say wait() you want that object's lock and thats why the methods are defined in the Object class.
SCJP 6 articles
SCJP 5/6 mock exams
More SCJP Mocks
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
How to kill a user thread forcefully?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015