Skip to main content
1-Visitor
April 23, 2012
Question

Multithreading in Mathcad Prime 2.0

  • April 23, 2012
  • 12 replies
  • 6175 views

We are looking into the multithreading feature in Mathcad Prime 2.0 and are wondering how people are using it.

Multithreading—When on, Mathcad can simultaneously perform multiple independent calculations. This may speed up calculation of some worksheets that contain a number of independent calculations, by better utilizing multi-processor systems.

We're investigating if multithreading should be the default (always on) or if users want to easily change the setting to turn it off for a specific worksheet.

Attached is a Mathcad Prime 2.0 worksheet showing how mulithreading works. To run the worksheet, turn on Multithreading, then recalculate by pressing F5 or F9.

To turn on Multithreading:

  1. Go to Calculation Tab > Calculation Options button.
  2. Click on the Multithreading button.

Here you can see 3 calculations running at once and one that has finished. Sleep just tells Mathcad to pause for the number of seconds in the argument.

multithreading.png

I'd like to see some examples how you might use multithreading and also examples of when you'd prefer sequential processing.

Thanks,

Mona

12 replies

1-Visitor
May 7, 2012

Mona,

I would like to use the multithreading feature of Prime2. I am working with an excel file with 5 worksheets, each with 35,000 data points. Multithreading would save a lot of time to complete the calculation. Not only that, the x64 would spead up the process. I am using v15 to complete the project, because Prime2 does not provide presentable 2d plots. The four files take up 15mg and 45 minutes to run an analysis. As you may guess, I am pretty frustrated with Prime2. It is the basics that are driving me nuts.

David Tg

1-Visitor
December 10, 2012

I use Multithread (MT) in all my calculations, and with a simple "time()" we can measure the gain of performance of our calculations. Nevertheless, I want to know how enable by a syntax or comand (like ORIGIN:=1), to avoid setting up every time that I open my sheet.

Please, It's that possible?.

Thanks a lot!

24-Ruby IV
December 10, 2012

You can have this area in the top of your opened sheet (template), change somone (1 to 0) in the second operator and see this time. But do not use Ctrl+F9!

timeD.png

1-Visitor
December 10, 2012

Thanks dude, but I want to know how to enable the MT feature by syntaxis (function or command like the ORIGIN:=1), that's because this function always stay disabled, even if I enable it and save the sheet (after the re-opening, the MT stay off again, isn't persistent).

Thanks!

17-Peridot
December 12, 2012

Hello Mona,

this is great news.

However, I'd rather have MC Prime having a routine running that, based on the number of possible parallel threads, proposes whether parallel processing is advisable or not.

I'd like to use it for some rather lengthy sheets which I currently use split up in several documents which I call up by a reference. So in my case I can't come up with an example where I's like to switch off parallel processing.

Raiko