wait,notify,notifyall

hi all..as you might be aware that wait,notify,notifyall are used in threads, but why they are defined in a Object not in Thread Class?ThanksPrasanth
[177 byte] By [Prasanth_Kumara] at [2007-11-27 3:39:52]
# 1
So that any object can be used as a monitor. They wouldn't be much use in the Thread class, if you think about it.
ejpa at 2007-7-12 8:43:16 > top of Java-index,Core,Core APIs...
# 2
monitor i mean new to that concept. i feel that because main program runs in a thread. how far am i correct
Prasanth_Kumara at 2007-7-12 8:43:16 > top of Java-index,Core,Core APIs...
# 3
> monitor i mean new to that concept.Try Google.> i feel that because main program runs in a thread.Eh?> how far am i correctCorrect about what?
ejpa at 2007-7-12 8:43:16 > top of Java-index,Core,Core APIs...
# 4

> monitor i mean new to that concept.

Try Google.

> i feel that because main program runs in a thread.

Eh?

> how far am i correct

Correct about what?

i like thank for your quick response

Since every class starts with main loads and runs in JVM on a Thread. to handle objects in thread wait,notify,notifyall are defined

Prasanth_Kumara at 2007-7-12 8:43:16 > top of Java-index,Core,Core APIs...