standards for thread safety

S

shishir

Please validate the followings:

STL is thread safe at class level.
Iostream library is thread safe at object level.

what does it mean and how is it useful for the programmers.
 
P

Peter van Merkerk

Please validate the followings:
STL is thread safe at class level.

Maybe, it depends on the implementation of the standard library you are
using.
Iostream library is thread safe at object level.

Maybe, it depends on the implementation of the standard library you are
using.
what does it mean and how is it useful for the programmers.

The C++ standard does not say anything about multithreading issues. A
compliant implementation may ignore multithreading issues altogether
moving the burden of proper synchronisation to the user. OTOH there is
nothing in the standard that prevent library implementaors to add thread
synchronisation to their library. Either way you will have to consult
the documentation that came with the standard library you are using or
contact its vendor.
 
S

Stephen Howe

Please validate the followings:
STL is thread safe at class level.
Perhaps

Iostream library is thread safe at object level.

Perhaps

Because C++ has nothing to say about thread safety. Consult your compilers
documentation.

Stephen Howe
 

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,755
Messages
2,569,536
Members
45,011
Latest member
AjaUqq1950

Latest Threads

Top