How can i know if one process is a child of another process ? or how can i find out the parent process of a given process ?

Thanks