java - Running Runnables in parallel in Android -
basically have 3 runnables download data internet, , want them run in parallel. right have following code:
threadpoolexecutor executor = (threadpoolexecutor) executors.newfixedthreadpool(3); executor.execute(firstrunnable); executor.execute(secondrunnable); executor.execute(thirdrunnable);
is correct way execute 3 runnables in parallel? thanks!
your code correct. similar question has been answered here.
Comments
Post a Comment