in reply to Re^4: detach for threadsin thread detach for threads
Yes. In this case however, the program exits, before the thread gets a chance to run, so no output, and no errors