Clear Filters
Clear Filters

Is matlab officially going to release multithreading-like SDK feature?

2 views (last 30 days)
multithreading is required for many applications. Is matlab officially going to release multithreading-like SDK feature?
  5 Comments
Minggui Chen
Minggui Chen on 7 Oct 2016
Thank you very much for you answer. I also want the communication between different threads. Do you know whether there is a feature for that? And also, I will run GUI with the main thread. Please let me know if you have any information about it.
Walter Roberson
Walter Roberson on 7 Oct 2016
spmd() has labSend() and labReceive()
It is also possible to use memmapfile() to open a common file -- though I am not certain how well that would work with multiple updates.
For OS-X and Linux there is a File Exchange contribution for shared matrices.
You could use TCP or UDP, as long as you can predict the port numbers of each thread.
At the moment, the only way I can think of to be able to handle a GUI is to use parfeval() or batch(); Edric Ellis suggests the example http://www.mathworks.com/help/distcomp/examples/parfeval-blackjack.html on this topic.

Sign in to comment.

Accepted Answer

Walter Roberson
Walter Roberson on 7 Oct 2016
Mathworks has a policy of not publicly releasing information about future features. Anyone who knows the answer is not permitted to reveal it in public. You can contact Mathworks Sales for comment under Non Disclosure Agreement.
Speaking as someone who has not been told anything on the topic by Mathworks, my expectation is that the answer is "Not until at least Mathworks replaces Java with something else as the underlying basis of the user interface".

More Answers (2)

sen sun
sen sun on 17 Aug 2018
i am doing similar thing,i want to build several-computer-communication using tcpip socket in spmd ,i will appreciate if you have any advice,look forward to your reply

Minggui Chen
Minggui Chen on 17 Aug 2018
You could use tcp protocols directly. I never tried tcp communication with spmd.

Categories

Find more on Code Execution in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!