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

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,533
Members
45,007
Latest member
OrderFitnessKetoCapsules

Latest Threads

Top