For threads, there really isn't true native support for that.. at least in the sense the kernel isn't aware of userland threads yet.
As for child processes, the PPID (..parent PID) will be set.. it's added to the output if
ps(1) with the
-l/-j arguments.