Forum Discussion
Altera_Forum
Honored Contributor
13 years agoprintf thread safe ?
Dear all, I am using printf() in a task to display debug information in a Nios terminal window. However, I was wondering if printf() is thread safe. I am facing some buggy behaviour which I suspect t...
Altera_Forum
Honored Contributor
13 years agoWhere did you see in the documentation that the standard C functions were thread safe? AFAIK the libc used with the Nios EDS (newlib (http://sourceware.org/newlib/)) and the Altera drivers aren't OS and don't include any mutex or synchronization mechanism. I would avoid using printf() or any standard I/O function from multiple threads under uC/OS.