android - Is (re)starting a thread UB? -


calling .start() on thread executes .run(). subsequent call (if thread still active) throws illegalthreadstateexception (as expected). however, if thread finishes .run() , in dead state, can still restarted via .start(). haven't found documentation on this, documented anywhere expected behavior?

java docs state should throw illegalthreadstateexception after started (period).


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -