Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to run one thread after complete another thread

I want to run two threads r1, and r2. First start the r1 and after completion of r1, start r2 (only after the completion r1). How can this be done, two threads, one after another?

like image 434
Ramakrishna Avatar asked Feb 03 '11 10:02

Ramakrishna


1 Answers

My answer here has an example using a Thread and a Handler. This method might be useful if you wanted to perform some UI updates in between the threads running.

like image 85
dave.c Avatar answered Oct 10 '22 06:10

dave.c