<?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 Threads and Memory in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Threads-and-Memory/m-p/959780#M21558</link>
    <description>Hi,  &lt;BR /&gt; &lt;BR /&gt;I am working in the parallelization of a sequential program, that uses library CPLEX.  &lt;BR /&gt; &lt;BR /&gt;For it, I generate 4 threads, : &lt;BR /&gt; &lt;BR /&gt;	do IE = 1, NTHREAD &lt;BR /&gt;		Entorno(IE) = IE &lt;BR /&gt;		Escalones(IE) = .TRUE. &lt;BR /&gt;		pthread(IE) = CreateThread(0, 1000000, Paralelo, IE, 0, LOC(pthreadID(IE))) &lt;BR /&gt;	end do  &lt;BR /&gt;	ret = WaitForMultipleObjects(NTHREAD, pthread, .TRUE., INFINITE) &lt;BR /&gt; &lt;BR /&gt;	Do IE = NTHREAD+1, NESCU &lt;BR /&gt;		Entorno(IE-NTHREAD) = IE &lt;BR /&gt;		Escalones(IE) = .TRUE. &lt;BR /&gt;		pthread(IE-NTHREAD) = CreateThread(0, 1000000, Paralelo, IE,0, LOC(pthreadID(IE-NTHREAD))) &lt;BR /&gt;	END DO &lt;BR /&gt;	ret = WaitForMultipleObjects(NTHREAD, pthread, .TRUE., INFINITE) &lt;BR /&gt; &lt;BR /&gt;Definition of same array is: &lt;BR /&gt;	  INTEGER*4 pthread(NTHREAD)  &lt;BR /&gt;	  INTEGER*4 pthreadID(NTHREAD) &lt;BR /&gt; &lt;BR /&gt;and: &lt;BR /&gt;          INTEGER NTHREAD &lt;BR /&gt;          PARAMETER (NTHREAD=2) &lt;BR /&gt; &lt;BR /&gt;The program break-down after a third of the total processing. I have the impression that it is a memory problem (due to the great  number of calls that makes to library) because it is cut when the Task Manager indicates that the used memory (by the program) is approximately 50.000 K.  &lt;BR /&gt; &lt;BR /&gt;The machine have 2 processors (Pentium II, 450Mh) with 128 MB of RAM. I use Visual Fortran 6,1. -  &lt;BR /&gt; &lt;BR /&gt;The local variables of each procedure are defined like Automatic.  &lt;BR /&gt; &lt;BR /&gt;Could they suggest me some mechanism to optimize the memory handling?  &lt;BR /&gt; &lt;BR /&gt;Thanks in advance. Ariel.</description>
    <pubDate>Wed, 25 Jul 2001 22:10:22 GMT</pubDate>
    <dc:creator>Intel_C_Intel</dc:creator>
    <dc:date>2001-07-25T22:10:22Z</dc:date>
    <item>
      <title>Threads and Memory</title>
      <link>https://community.intel.com/t5/Software-Archive/Threads-and-Memory/m-p/959780#M21558</link>
      <description>Hi,  &lt;BR /&gt; &lt;BR /&gt;I am working in the parallelization of a sequential program, that uses library CPLEX.  &lt;BR /&gt; &lt;BR /&gt;For it, I generate 4 threads, : &lt;BR /&gt; &lt;BR /&gt;	do IE = 1, NTHREAD &lt;BR /&gt;		Entorno(IE) = IE &lt;BR /&gt;		Escalones(IE) = .TRUE. &lt;BR /&gt;		pthread(IE) = CreateThread(0, 1000000, Paralelo, IE, 0, LOC(pthreadID(IE))) &lt;BR /&gt;	end do  &lt;BR /&gt;	ret = WaitForMultipleObjects(NTHREAD, pthread, .TRUE., INFINITE) &lt;BR /&gt; &lt;BR /&gt;	Do IE = NTHREAD+1, NESCU &lt;BR /&gt;		Entorno(IE-NTHREAD) = IE &lt;BR /&gt;		Escalones(IE) = .TRUE. &lt;BR /&gt;		pthread(IE-NTHREAD) = CreateThread(0, 1000000, Paralelo, IE,0, LOC(pthreadID(IE-NTHREAD))) &lt;BR /&gt;	END DO &lt;BR /&gt;	ret = WaitForMultipleObjects(NTHREAD, pthread, .TRUE., INFINITE) &lt;BR /&gt; &lt;BR /&gt;Definition of same array is: &lt;BR /&gt;	  INTEGER*4 pthread(NTHREAD)  &lt;BR /&gt;	  INTEGER*4 pthreadID(NTHREAD) &lt;BR /&gt; &lt;BR /&gt;and: &lt;BR /&gt;          INTEGER NTHREAD &lt;BR /&gt;          PARAMETER (NTHREAD=2) &lt;BR /&gt; &lt;BR /&gt;The program break-down after a third of the total processing. I have the impression that it is a memory problem (due to the great  number of calls that makes to library) because it is cut when the Task Manager indicates that the used memory (by the program) is approximately 50.000 K.  &lt;BR /&gt; &lt;BR /&gt;The machine have 2 processors (Pentium II, 450Mh) with 128 MB of RAM. I use Visual Fortran 6,1. -  &lt;BR /&gt; &lt;BR /&gt;The local variables of each procedure are defined like Automatic.  &lt;BR /&gt; &lt;BR /&gt;Could they suggest me some mechanism to optimize the memory handling?  &lt;BR /&gt; &lt;BR /&gt;Thanks in advance. Ariel.</description>
      <pubDate>Wed, 25 Jul 2001 22:10:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Threads-and-Memory/m-p/959780#M21558</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2001-07-25T22:10:22Z</dc:date>
    </item>
  </channel>
</rss>

