Simultaneous reading of mat file allowed?

7 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 Interactive 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