What is the asymptotic worst case time complexity of an algorithm that involves parallel processing? If there are O(p) processes run in parallel each with a runtime of O(n), is the runtime still O(n) in theory, regardless of the size of p relative to n, or is the runtime dependent on O(p) as well?
I am looking for both the canonical method used in theory texts to define the computational complexity of programs with parallel processes, and the practical considerations, for example hardware limitations, it presents.