Thread Subject: Using the system command to launch a multi-threaded PC executable

Subject: Using the system command to launch a multi-threaded PC executable

From: Ken Campbell

Date: 19 Oct, 2011 00:48:07

Message: 1 of 1

I have a Windows executable file that runs stochastic simulations as separate threads and then averages the results together at the end.

I would like to run the simulations from MATLAB using the system command. Everything works fine if I run the 4-threaded version of the executable but the executable returns early (without reporting an error) if I try to run 5 or more threads.

I suspect that this is because my Windows 7 machine has 4 cores and maxNumCompThreads (see http://www.mathworks.com/help/techdoc/ref/maxnumcompthreads.html) is therefore equal to 4.

Is there a way of successfully launching the 6-threaded version of the executable from MATLAB (2011a - or b if it makes a difference) ?

Thanks in advance for any help,

Ken

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Contact us at files@mathworks.com