필터 지우기
필터 지우기

is multi threading possible in MATLAB

조회 수: 158 (최근 30일)
Sairah
Sairah 2017년 7월 26일
답변: Rashi Mehrotra 2021년 10월 8일
I want to do programming using multi threading approach. is it possible in MATLAB? please tell

답변 (3개)

Jan
Jan 2017년 7월 26일
편집: Jan 2017년 7월 26일
Many commands, e.g. sum is multi-threaded internally already: beyond a specific data size, the work is distributed to multiple threads, which are processed in parallel.
You can control the multi-threading in C-Mex functions directly. And in Matlab the Parallel Computing Toolbox offers e.g. the parfor loop to distribute the code to several workers. See https://www.mathworks.com/products/parallel-computing.html.
Note that the Parallel Computing Toolbox can distribute the work load not only to the cores of one CPU, but to multiple CPUs also, this means to different computers. See e.g. https://de.mathworks.com/help/distcomp/spmd.html. Multi-threading and parallel computing are different stories.
  댓글 수: 8
Fatma Yörük
Fatma Yörük 2021년 6월 17일
Hi @Jan. I exactly need the same guide with @Oindri. Please, provide us. Thank you.
Jan
Jan 2021년 6월 17일
@Fatma Yörük: I did not understand, what Oindri is asking for. "Implement mutlithreading to an algorithm of mine" cannot be answered. That a C++ function is called does not reveal any detail also. I do not know, what "underlying Java MT" means.
Now you think you have the same question? Then please open a new thread and explain any details of your problem. Otherwise an answer is impossible.

댓글을 달려면 로그인하십시오.


Rashi Mehrotra
Rashi Mehrotra 2021년 10월 8일
Hi Sairah,
The problem is similar to mine, in which data is received parallelly from two sensors.
Di you achieved the solution for your problem of multithreading, Please can you tell me.

Akhilesh Thakur
Akhilesh Thakur 2017년 7월 26일
Parallel Computing Toolbox is a way to go. If you don't have it then you would have to built state machine which will execute sequentially. I did that way though it was not parallel. Let me know what kind of parallel programming you are looking for.
  댓글 수: 1
Sairah
Sairah 2017년 7월 27일
hi Thakur. Actually I am new to this approach. thats why I am afraid that Matlab platform offers me to work on this or should I migrate to another platform such as C# As I am making GUI in MATLAB for position tracking and localization. so in parallel I have to process more than one object at the same time.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 시작과 종료에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!