Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > standards for thread safety

Reply
Thread Tools

standards for thread safety

 
 
shishir
Guest
Posts: n/a
 
      08-13-2003
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.
 
Reply With Quote
 
 
 
 
Peter van Merkerk
Guest
Posts: n/a
 
      08-13-2003
> 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.

--
Peter van Merkerk
peter.van.merkerk(at)dse.nl


 
Reply With Quote
 
 
 
 
Stephen Howe
Guest
Posts: n/a
 
      08-13-2003
> 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


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Thread-safety and Singleton methods =?Utf-8?B?RGlmZmlkZW50?= ASP .Net 1 01-13-2005 06:07 PM
Thread safety when subclassing the Page class thechaosengine ASP .Net 2 12-10-2004 02:48 PM
What is thread safety? Hans ASP .Net 1 10-12-2004 03:15 PM
A thread safety question Simon Harvey ASP .Net 3 08-06-2004 02:17 PM
LiteralControl thread safety. George Ter-Saakov ASP .Net 1 04-06-2004 10:06 AM



Advertisments