Valhalla Legends Forums Archive | Java Programming | simple question

AuthorMessageTime
touchstone
Q1 : i want to know what is the content of the run() method of thread class?

Q2 : what is the job of yield() method? can you explain it simple way?

thanks
February 11, 2004, 3:00 PM
iago
[quote author=touchstone link=board=34;threadid=5228;start=0#msg43661 date=1076511610]
Q1 : i want to know what is the content of the run() method of thread class?

Q2 : what is the job of yield() method? can you explain it simple way?

thanks
[/quote]

I don't know the answer, but you can almost certainly find it at http://java.sun.com.
February 11, 2004, 3:55 PM
St0rm.iD
[quote author=touchstone link=board=34;threadid=5228;start=0#msg43661 date=1076511610]
Q1 : i want to know what is the content of the run() method of thread class?

Q2 : what is the job of yield() method? can you explain it simple way?

thanks
[/quote]

Q1:
it's empty.

Q2:
it pauses for an indeterminant slice time to give other threads a chance to run.
February 14, 2004, 12:29 AM
DaRk-FeAnOr
You can look up any of this stuff on the Java Platform API specifications
February 17, 2004, 2:24 PM
iago
[quote author=DaRk-FeAnOr link=board=34;threadid=5228;start=0#msg44727 date=1077027897]
You can look up any of this stuff on the Java Platform API specifications
[/quote]

That's almost exactly what I said.
February 17, 2004, 2:45 PM

Search