Posted By:
Mike_Friedrich
Posted On:
Sunday, July 28, 2002 11:37 PM
SUN's API doc says:
"This method blocks until a datagram is received."
This means, that the current thread will block, not the others. If you see that other threads block while this methods runs - you have a synchronized anythere around them.
Try to avaoid synchronization around code that could run a long time (>0,5 seconds) or for code where you dont know the time to run.
Ups, i see now you have overridden the start() method, this is definitly wrong. Use run() for that.
In your case a new thread is not created. The overridden method creates a new one and launches run in that new thread.
Regards, Mike