Periodic Task execution
Show older comments
Hi everyone!
This is the first time i am asking a question here in the matlab community. This communitiy is realy very helpfull! Thanks for all the hard-working people answering the questions!
My question is: I am trying to compute several parallel, periodic and independant tasks in a job using the Parallel Computing Toolbox. I am a novice in using this toolbox.
Can somebody tell me if there is a possibility to do something like that? Furthermore i want to exchange data between the tasks. Is there also a solution? Or is there an other possibility to execute some functions in parallel and independant from each other?
Any hints are welcome!
Background knowledge: I am programming an "real-time" Optical Character recognition using a generic web-camera examining a LCD-Display. Because this process is realy time-critical i want to process several parts of the display independantly.
Thanks in advance for your help! Kind regards Martin
Answers (2)
Sean de Wolski
on 8 Jun 2011
You would just have to split the image up using a parfor loop. When each computation is independent this shouldn't be an issue - define the quadrants (example 4 cores) and run it. You can use a timer function to acquire the data and operate the parfor loop.
For tasks that are dependent on others, I know of no solution using PCT. Depending on what the task is, parallelization is not always faster. There is quite a bit of overhead in data transfer so a fast computation with a lot of data will be slower.
Provide a more specific example and we can be more helpful with code.
Welcome to MATLAB Answers!
Martin
on 9 Jun 2011
0 votes
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!