Visa Inc. Interview Question

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