Simultaneous reading of mat file allowed?

조회 수: 7 (최근 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 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