Author Topic:   threads
posted February 20, 2000 08:32 PM           

which are true

sleep puts thread in ready state //f is in waitstate
yield puts thread in waiting state //t
suspend is the preferred way for stopping a threads execution //f
interrupt invokes InterruptedException //t

maha anna
posted February 20, 2000 09:42 PM             
You are correct in all except the 2nd .
.yield() puts the thread back to Ready state
When yield() is called, the thread on which it is called yields the execution slot to another thread (who are in ready state).
maha anna