I think MarkMLI is saying that in linux when you call fork, a new process is created by cloning the original = an exact copy of the process descriptor is made and assigned to the forked process (except the pid and ppid)
No, I am not. These are different system calls, and the distinction is critical to the way pthreads are implemented.
fork creates a new process with a distinct memory context, subject to COW. clone creates a new process sharing the came memory context, i.e. a thread.
The PID situation appears... messy in the TThread context, with the owning process's PID becoming the thread group and the subsidiary threads' PID becoming the thread identifiers. It might be that the BeginThread() return value is significant here.
MarkMLl