By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,515 Members | 1,848 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,515 IT Pros & Developers. It's quick & easy.

are cout and printf thread safe?

P: n/a
Hello experts,
are cout and printf and other ostream and stdio functions/libraries are
threadsafe?
i am using gnu gcc3.3.2 on AIX5.2.
and my applications are multithreaded applications.
i am using -lpthread as one of the compiler option.
i am using cout and printf for debugging purpose.
thanks for ur replies in advance.

Thanks and Regards
Nagaraj Hayyal

Nov 2 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
nrhayyal wrote:
Hello experts,
are cout and printf and other ostream and stdio functions/libraries are
threadsafe?
i am using gnu gcc3.3.2 on AIX5.2.
and my applications are multithreaded applications.
i am using -lpthread as one of the compiler option.
i am using cout and printf for debugging purpose.
thanks for ur replies in advance.

Thanks and Regards
Nagaraj Hayyal


That's implementation dependent. The Standard says nothing about
threads. Ask in a group related to your implementation and/or platform.
Nov 2 '05 #2

P: n/a

nrhayyal wrote:
Hello experts,
are cout and printf and other ostream and stdio functions/libraries are
threadsafe?
i am using gnu gcc3.3.2 on AIX5.2.
and my applications are multithreaded applications.
i am using -lpthread as one of the compiler option.
i am using cout and printf for debugging purpose.
thanks for ur replies in advance.

Thanks and Regards
Nagaraj Hayyal


On my system, it's not.

Nov 3 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.