Parallel Computing

Hello,
Please let me the code to know the status of each process and their id in parallel computing.

Thanks,