In what situation, an IllegalThreadStateException will be thrown?
2007-03-08 20:42
253 查看
Q. In what situation, an IllegalThreadStateException will be thrown?
A:
1) If the thread was already started, you call start() again.
2) If this thread is active, you call setDaemon().
3) A deprecated method countStackFrames() also throws
IllegalThreadStateException.
A:
1) If the thread was already started, you call start() again.
2) If this thread is active, you call setDaemon().
3) A deprecated method countStackFrames() also throws
IllegalThreadStateException.
相关文章推荐
- The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact
- Exception in thread "main" java.lang.IllegalArgumentException: node to traverse cannot be null!
- Exception in thread "main" java.lang.IllegalThreadStateException
- Exception in thread java.lang.IllegalThreadStateException
- PHP7新特性 What will be in PHP 7/PHPNG
- Exception in thread "main" org.hibernate.AnnotationException: List/array has to be annotated with an
- Exception in thread "main" java.lang.IllegalArgumentException: Argument cannot be null
- java.lang.IllegalStateException: Fatal Exception thrown on Scheduler.Worker thread.
- Exception in thread "Thread-0" java.lang.IllegalMonitorStateException
- What should be in my .gitignore for an Android Studio project?提交到git上的文件
- java.lang.IllegalStateException: The remote endpoint was in state [TEXT_FULL_WRITING] which is an invalid state for called method 解决办法
- java.lang.IllegalStateException: Target host must not be null, or set in parameters.
- java.lang.IllegalStateException: Fatal Exception thrown on Scheduler.Worker thread.
- java.lang.IllegalStateException: Fatal Exception thrown on Scheduler.Worker thread.
- Exception in thread "AWT-EventQueue-0" java.lang.IllegalThreadStateException
- 又到预测时,what will be cool in 2006?
- java.lang.IllegalStateException: Fatal Exception thrown on Scheduler.Worker thread.
- 又到预测时,what will be cool in 2006?
- PHP7新特性 What will be in PHP 7/PHPNG
- PHP7新特性 What will be in PHP 7/PHPNG