logoalt Hacker News

kccqzyyesterday at 5:40 PM1 replyview on HN

If you have enough discipline to make sure you only create threads after all the forking is done, then sure. But having such discipline is harder than just forbidding fork or forbidding threads in your program. It turns a careful analysis of timing and causality into just banning a few functions.


Replies

josefxyesterday at 8:40 PM

Can't you check what threads are active at the time you fork?

show 1 reply