Running multiple programs at once

  • Follow


Hi,

Can i run multiple programs at once in Matlab. I am running a program which takes lot of time to complete so i was wondering if can run some other program meanwhile. I am using Matlab version 7.8.0.347 (R2009a).
Thanks!
0
Reply lramsb4u (16) 9/21/2010 6:33:49 PM

On Sep 22, 10:33=A0am, rams <lrams...@gmail.com> wrote:
> Hi,
>
> Can i run multiple programs at once in Matlab. I am running a program whi=
ch takes lot of time to complete so i was wondering if can run some other p=
rogram meanwhile. I am using Matlab version 7.8.0.347 (R2009a).
> Thanks!

You can open several instances of Matlab and run a program in each.

I did this inadvertently one time when I was running (from DOS):
matlab -r myfile
every half-hour in a schedule, but what I should have written was:
matlab -r myfile;exit
In other words, I had failed to close Matlab down each half hour after
the routine had run.
When I came back a day later, I had 48 Matlabs open.  They were all
operating just fine.  I guess the operating system sorts out
priorities.

0
Reply TideMan 9/21/2010 10:55:10 PM


On 10-09-21 05:33 PM, rams wrote:

> Can i run multiple programs at once in Matlab. I am running a program which takes lot of time to complete so i was wondering if can run some other program meanwhile. I am using Matlab version 7.8.0.347 (R2009a).

Someone else replied pointing out that you can run Matlab multiple times. Note 
that the newer the version of Matlab you use, the more functions are 
automatically parallelized across multiple threads or multiple cores (provided 
that the array sizes are large enough to make doing so worth while.) If your 
array sizes *are* large enough for that effect to kick in, then when you run 
multiple copies of matlab, the copies might end up competing against each 
other for cores or threads, unless you limit the number of threads that each 
copy can use.

Also, don't forget to allow for one thread for your virus checking and other 
similar system overhead.
0
Reply Walter 9/22/2010 5:41:47 PM

2 Replies
416 Views

(page loaded in 0.148 seconds)

Similiar Articles:













7/23/2012 11:41:00 AM


Reply: