×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Thrread in Matlab

Thrread in Matlab

Thrread in Matlab

(OP)
Hello,
I wonder if Matlab has threading. I am doing sum processing for data and save the result in an array. I am wonder if I can write the array (partial result) to a file and continue processing without interruption. It seem that I should have 2 thread one responsible about processing the data and save them to the array while the second thread write the array into a file. Any suggestion how to handle this issue.

Thanks,

RE: Thrread in Matlab

Please don't highlight your own messages, the board software handles that.

Yes, matlab can do parallel processing

from the help

Implicit Multiprocessing

Characteristics of implicit multiprocessing:

*

Runs multiple threads on a single machine, most often using one thread per processing unit.
*

Requires a multiple CPU (multiprocessor or multicore) system.
*

Speeds up elementwise computations such as those done by the sin and log functions, and computations that use the Basic Linear Algebra Subroutines (BLAS) library, such as matrix multiply.
*

Does not require any changes to your MATLAB code.
*

Works behind the scenes to take advantage of the processing units available to you. It does this by multithreading the computationally-intensive math library functions that you use in the course of your MATLAB session.

MATLAB enables multithreaded computation by default. You can disable it by specifying the singleCompThread option when starting MATLAB.
Explicit Multiprocessing

Characteristics of explicit multiprocessing:

*

Runs separate processes on one or many machines.
*

Requires installation of Parallel Computing Toolbox.
*

Speeds up execution of large MATLAB jobs. Enables you to run jobs simultaneously on a cluster of computers, or as several processes on a single machine.
*

Requires that you modify your MATLAB code.
*

The Parallel Computing Toolbox supports programming constructs for distributed arrays and parallel for (parfor) loops. It also supports both interactive and batch execution.

Enable explicit multiprocessing by installing Parallel Computing Toolbox.

Cheers

Greg Locock


New here? Try reading these, they might help FAQ731-376: Eng-Tips.com Forum Policies http://eng-tips.com/market.cfm?

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members! Already a Member? Login



News


Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close