Simultaneous reading of mat file allowed?

8 ビュー (過去 30 日間)
CAM
CAM 2019 年 12 月 3 日
編集済み: CAM 2020 年 1 月 2 日
I know it is bad to allow multiple users to write to a mat-file simultaneously (or one read while another is writing).
But can two users simultaneously read (only) from a mat-file? Or do we need to lock out other users while another performs any R/W operation?

採用された回答

Vahila Kayithi
Vahila Kayithi 2019 年 12 月 27 日
Having multiple instances of the same file is not recommended. A possible workaround for this issue would be to create a "lock" file for each instance of MATLAB. You can find an example on how to use the lock mechanism in the below link.
  1 件のコメント
CAM
CAM 2020 年 1 月 2 日
編集済み: CAM 2020 年 1 月 2 日
I actually stumbled upon the cited page in a separate search the day after my initial query. I implemented it successfully in my application. Thank you for the response nonetheless.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeInteractive Control and Callbacks についてさらに検索

タグ

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by