• Welcome to Valhalla Legends Archive.
 

simple question

Started by touchstone, February 11, 2004, 09:00 AM

Previous topic - Next topic

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

iago

Quote from: touchstone on February 11, 2004, 09:00 AM
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

I don't know the answer, but you can almost certainly find it at http://java.sun.com.  
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


Banana fanna fo fanna

Quote from: touchstone on February 11, 2004, 09:00 AM
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

Q1:
it's empty.

Q2:
it pauses for an indeterminant slice time to give other threads a chance to run.

Dark-Feanor

#3
You can look up any of this stuff on the Java Platform API specifications
- Feanor[xL]
clan exile
Firebot
iago: "caps lock is like cruise control for cool"

iago

This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*