Visa Inc. interview question

design a multi threading solution for n process with m processor with process dependency among each other ?