mysm

32 Reputation

4 Badges

16 years, 185 days

MaplePrimes Activity


These are replies submitted by mysm

This is a simple test! you can run any optional code.

for making you certain: "test.mws"

-----------------------------------------------------------------------------------------

restart;
with(Threads);
 
 Post1:=proc()
 M:=Matrix(30000000,1);
 M[1,1]:=0;
 for i from 2 to 30000000  do
 M[i,1]:=M[i-1,1]+1:
 end do:  end proc;
 
 
 Post2:=proc()
 M2:=Matrix(30000000,1);
 M2[1,1]:=0;
 for i from 2 to 30000000  do
 M2[i,1]:=M2[i-1,1]+1:
 end do:  end proc;
 
 Threads:-Wait( Threads:-Create( Post1(  ) ),Threads:-Create( Post2(  ) ) );

------------------------------------------------------------------------------------

You can test the problem only on multy cores CPUs with WINXP SP2. if you run it you can see that the CPU usage would not be the maximum! so your run time will be increase than when no matrix !

This is a simple test! you can run any optional code.

for making you certain: "test.mws"

-----------------------------------------------------------------------------------------

restart;
with(Threads);
 
 Post1:=proc()
 M:=Matrix(30000000,1);
 M[1,1]:=0;
 for i from 2 to 30000000  do
 M[i,1]:=M[i-1,1]+1:
 end do:  end proc;
 
 
 Post2:=proc()
 M2:=Matrix(30000000,1);
 M2[1,1]:=0;
 for i from 2 to 30000000  do
 M2[i,1]:=M2[i-1,1]+1:
 end do:  end proc;
 
 Threads:-Wait( Threads:-Create( Post1(  ) ),Threads:-Create( Post2(  ) ) );

------------------------------------------------------------------------------------

You can test the problem only on multy cores CPUs with WINXP SP2. if you run it you can see that the CPU usage would not be the maximum! so your run time will be increase than when no matrix !

I have another PC that is not multy core. With WINXP SP2 32bit

that one is the same. i mean the CPU Usage for maple PIDs all to gether

maple.exe

mserver.exe

,....

never goes over 50%

in addition in core2 duo cpu, both of cores are in use but just in half performance!

I have another PC that is not multy core. With WINXP SP2 32bit

that one is the same. i mean the CPU Usage for maple PIDs all to gether

maple.exe

mserver.exe

,....

never goes over 50%

in addition in core2 duo cpu, both of cores are in use but just in half performance!

Page 1 of 1