> > Is there any good option for debugging a multithreaded program? > > By defenition there isn't. Anything you do will affect the timing of > your program. If you want debugability, avoid threads.
Race-free parallel programming is an active area of research. I can't accept your definition because I have a counterexample. But you have answered my original question and told me what to expect from OpenBSD.