Club process together

How to club two or three task/process together so that they are completed simultaneously?
I want to make a task wait until corresponding task is completed