<?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 Re: Problem in threading (HP Digital) in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/problem-in-threading-hp-digital/m-p/4759631#M41208</link>
    <description>"it is not able to copy it"&lt;BR /&gt;&lt;BR /&gt;Haha, perfect symptom description.&lt;BR /&gt;&lt;BR /&gt;/Guenther</description>
    <pubDate>Tue, 01 Mar 2011 15:49:27 GMT</pubDate>
    <dc:creator>GuentherF</dc:creator>
    <dc:date>2011-03-01T15:49:27Z</dc:date>
    <item>
      <title>Problem in threading (HP Digital)</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/problem-in-threading-hp-digital/m-p/4759630#M41207</link>
      <description>Hi,&lt;BR /&gt;  We have a mutlithreaded application into which we recently done some modifications . we are calling a function "X" from function thread "Y" and we are passing a structure from Y to X and in this X we are just doing a copy of one integer variable from the structure to a char pointer using scanaf. Whats happening is after processing some records these threads are not able to copy integer value to  char*. &lt;BR /&gt;When we printed the integer variable its comming properly but i dont understand why then it is not able to copy it. Can any one please tell what could be the reason for this phenomenon. Do i need to declare the variables in volatile or somethingelse i need to do.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Anup</description>
      <pubDate>Tue, 01 Mar 2011 14:39:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/problem-in-threading-hp-digital/m-p/4759630#M41207</guid>
      <dc:creator>anup1890</dc:creator>
      <dc:date>2011-03-01T14:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in threading (HP Digital)</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/problem-in-threading-hp-digital/m-p/4759631#M41208</link>
      <description>"it is not able to copy it"&lt;BR /&gt;&lt;BR /&gt;Haha, perfect symptom description.&lt;BR /&gt;&lt;BR /&gt;/Guenther</description>
      <pubDate>Tue, 01 Mar 2011 15:49:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/problem-in-threading-hp-digital/m-p/4759631#M41208</guid>
      <dc:creator>GuentherF</dc:creator>
      <dc:date>2011-03-01T15:49:27Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in threading (HP Digital)</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/problem-in-threading-hp-digital/m-p/4759632#M41209</link>
      <description>Anup,&lt;BR /&gt;&lt;BR /&gt;This is a very vague definition of a problem. In a multi-threaded environment, there are a large number of ways in which problems with this or similar descriptions can occur.&lt;BR /&gt;&lt;BR /&gt;A careful review of the sources is in order. Having done this in the past many times, it is not possible to know if the problem is a shortcoming of the modifications, or an error in the original code that is exposed by the changes. Also note that the definitions of the C RTL routines should be checked to make sure that they are "thread safe".&lt;BR /&gt;&lt;BR /&gt;- Bob Gezelter, &lt;A href="http://www.rlgsc.com" target="_blank"&gt;http://www.rlgsc.com&lt;/A&gt;</description>
      <pubDate>Tue, 01 Mar 2011 19:02:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/problem-in-threading-hp-digital/m-p/4759632#M41209</guid>
      <dc:creator>Robert Gezelter</dc:creator>
      <dc:date>2011-03-01T19:02:21Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in threading (HP Digital)</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/problem-in-threading-hp-digital/m-p/4759633#M41210</link>
      <description>I haven't heard of the scanaf() function, and there's no mention of it in the CRTL manual.  Do you mean sscanf()?&lt;BR /&gt;&lt;BR /&gt;If so, it seems to me you are using the wrong routine: the input to sscanf() is a pair of strings, the output is whatever the first string represents (be it integers, floats or other strings).&lt;BR /&gt;&lt;BR /&gt;In other words, I don't think you would ever use sscanf() to "copy integer value to char*".  I would have thought sprintf() would be better for that.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Jeremy Begg</description>
      <pubDate>Wed, 02 Mar 2011 03:44:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/problem-in-threading-hp-digital/m-p/4759633#M41210</guid>
      <dc:creator>Jeremy Begg</dc:creator>
      <dc:date>2011-03-02T03:44:58Z</dc:date>
    </item>
  </channel>
</rss>

