multithreading - Invoking code inside a thread that has already been started in java -


how can run code inside custom thread has started?

i need run code inside started thread edt-swingutilities.invokelater() or android.view.runonuithread() does.

thanks!

if expect able on thread not otherwise dedicated accepting tasks execution, answer simple: ask impossible. way accomplish explicit cooperation thread on want this.

if above paragraph did not discourage you, best option use executorservice , submit tasks it. service can configured single-threaded, if goal.


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -