Thread First Job First in sequence
-
I am having two threads which are for job1 and job2 respectively.
Both are scheduled at same time at same frequency say every one minutes.But some time job1 runs first and some times job2 runs first.
I want some how job1 should be executed before job2.
so is there a solution.
The time taken by job1 is around 6 secs
Where as job2 needs less than a second to complete the task.