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
Post a Comment