are cout and printf thread safe?

N

nrhayyal

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
 
R

red floyd

nrhayyal said:
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.
 
B

BigBrian

nrhayyal said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top