standards for thread safety

Discussion in 'C++' started by shishir, Aug 13, 2003.

  1. shishir

    shishir Guest

    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.
     
    shishir, Aug 13, 2003
    #1
    1. Advertisements

  2. > 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
     
    Peter van Merkerk, Aug 13, 2003
    #2
    1. Advertisements

  3. shishir

    Stephen Howe Guest

    > 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
     
    Stephen Howe, Aug 14, 2003
    #3
    1. Advertisements

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Hans

    What is thread safety?

    Hans, Oct 11, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    653
    Sahil Malik
    Oct 12, 2004
  2. George Ter-Saakov

    LiteralControl thread safety.

    George Ter-Saakov, Apr 5, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    414
    Martin Dechev
    Apr 6, 2004
  3. Simon Harvey

    A thread safety question

    Simon Harvey, Aug 6, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    473
    Alvin Bruney [MVP]
    Aug 6, 2004
  4. thechaosengine

    Thread safety when subclassing the Page class

    thechaosengine, Dec 10, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    437
    Scott Allen
    Dec 10, 2004
  5. =?Utf-8?B?RGlmZmlkZW50?=

    Thread-safety and Singleton methods

    =?Utf-8?B?RGlmZmlkZW50?=, Jan 13, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    585
    Karl Seguin
    Jan 13, 2005
Loading...

Share This Page