in reply to Fork and creating a thread exits the process

My advice is to not mix fork and threads. Use one or the other.

Especially on Windows, where fork is emulated by threads, mixing the two gives even weirder results.

  • Comment on Re: Fork and creating a thread exits the process

Replies are listed 'Best First'.
Re^2: Fork and creating a thread exits the process
by fluks (Novice) on Jul 31, 2020 at 13:13 UTC

    Sorry if my post was unclear, but I didn't mix fork and threads in my program. I just tried both versions.