Reputation: 4086
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?
Upvotes: 5
Views: 12891
Reputation: 7
Upvotes: -3
Reputation: 11514
Why don't you do all the tasks you want in one single thread? This way they will be "naturally" one after the other.
The way to implement this depends on what type of tasks you want to do and how you pass them the information they require to start.
Upvotes: 1