<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic STL Using Threads in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/stl-using-threads/m-p/4116200#M92813</link>
    <description>Looking at aC++ online programmers guide (A06.05) it seems that the stl library (v2) are thread safe (-mt switch), but using from multiple threads the same queue object with push and pop calls the program ended, however if we protect the calls via mutex the program complete succesfully. Looking inside the template code there are no mutexes, this make me thing that the STL are not thread safe.&lt;BR /&gt;Any comment? Thanks and regards, Ivano</description>
    <pubDate>Thu, 13 Dec 2007 12:41:57 GMT</pubDate>
    <dc:creator>ivano_1</dc:creator>
    <dc:date>2007-12-13T12:41:57Z</dc:date>
    <item>
      <title>STL Using Threads</title>
      <link>https://community.hpe.com/t5/operating-system-linux/stl-using-threads/m-p/4116200#M92813</link>
      <description>Looking at aC++ online programmers guide (A06.05) it seems that the stl library (v2) are thread safe (-mt switch), but using from multiple threads the same queue object with push and pop calls the program ended, however if we protect the calls via mutex the program complete succesfully. Looking inside the template code there are no mutexes, this make me thing that the STL are not thread safe.&lt;BR /&gt;Any comment? Thanks and regards, Ivano</description>
      <pubDate>Thu, 13 Dec 2007 12:41:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/stl-using-threads/m-p/4116200#M92813</guid>
      <dc:creator>ivano_1</dc:creator>
      <dc:date>2007-12-13T12:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: STL Using Threads</title>
      <link>https://community.hpe.com/t5/operating-system-linux/stl-using-threads/m-p/4116201#M92814</link>
      <description>STL containers are only thread safe behind the user's back.  (In particular the reference counted strings.)&lt;BR /&gt;&lt;BR /&gt;But the user is responsible synchronizing his own accesses and modifications to his containers.  The same as if you were dealing with an int.&lt;BR /&gt;&lt;BR /&gt;Accessing separate STL containers is safe.</description>
      <pubDate>Thu, 13 Dec 2007 22:24:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/stl-using-threads/m-p/4116201#M92814</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-12-13T22:24:08Z</dc:date>
    </item>
  </channel>
</rss>

