Hi, I have a program like 1)printf("%s %d",__FILE__,__LINE__); 2)printf("%s %d",__FILE__,__LINE__); 3)printf("%s %d",__FILE__,__LINE__); 4)assert(0); 1)My question is : are the printf/cout statements are run by separate threads? 2)In the above program some time prinrf statement on line1 is printed. some times upto line 2, some time upto line3. why? 3) How to make sure that all the print statements, before the line causing the crash , are printed ? thanks.