printf implicit sync?

Discussion created by Meteorhead on Oct 19, 2010
Latest reply on Oct 19, 2010 by MicahVillmow
what does it do?


My situation is I have a simulation program that gives differing results based on me having printf() commands inside the kernel or not.

I had several variables printed out for debugging, and I realised on the way printf commands impose major lag on execution. When the code was working I removed all printf commands from the kernel and it started giving bad results.

Not all, but some kernels return fishy results, which leads me to suspect there is a sync issue somewhere in the code.

How exactly does printf alter kernel execution?