2 ms·Or you carefully ensure all of the threads are in a safe state before you fork().by mcguire 9y agoOr you carefully ensure all of the threads are in a safe state before you fork().rwmj 9y agoBut that's not possible if you're writing a library.mcguire 9y agoNobody ever said multithreading was easy. :-)