I cooked up this example as I tried to help one of my colleagues to debug his code.
Most of us know that a Thread cannot be started more than one time....But my friend did make such a mistake in his code: try to restart a thread after it have been dead (run() method has been returned).
No mistake is stupid. But a good programmer should be good at learning lessons from other's mistakes...
Most of us know that a Thread cannot be started more than one time....But my friend did make such a mistake in his code: try to restart a thread after it have been dead (run() method has been returned).
No mistake is stupid. But a good programmer should be good at learning lessons from other's mistakes...