Launch multiple threads in parallel and share variables

3 ビュー (過去 30 日間)
Sébastien MAILFERT
Sébastien MAILFERT 2019 年 6 月 12 日
コメント済み: Stephen23 2019 年 6 月 12 日
Dear all,
we would like to perform two things in parallel:
  1. acquire data on-the-fly on a camera
  2. analyze these data in parallel
The two tasks are different Matlab codes. We are currently unable to do this in an optimal way (we tried the smpd function which is really tooooo slow).
The idea is to use a MEX file to launch the two codes in two different threads which can then share variables (our acquired data).
Is it the optimal way to do that or does it exist another solution?
Best regards.
Sébastien
  2 件のコメント
Jan
Jan 2019 年 6 月 12 日
The question is far too vague to be answered. Please edit it and add more information.
Stephen23
Stephen23 2019 年 6 月 12 日
Sébastien MAILFERT's "Answer" moved here:
hum...
What is the best solution to launch two function in parallel while one function creates data continuously and the second one analyze this data continuously into two parallel threads?

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeWhos についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by