which method tells that threads that are running serially and the threads that are running in parallel?