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

c++ - Linked List error when inserting for the last time -

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

tsql - Pivot with Temp Table (definition for column must include data type) -- SQL Server 2008 -