Stuart’s MATLAB Videos

Watch and Learn

Implementing a Lock File with Help from ChatGPT

I have a utility that lets me save random metrics about various systems and processes to a spreadsheet. This utility is called from many systems that run concurrently and sometimes there can be simultaneous attempts to write to the file which fails. I want to implement a lock file to allow safe simultaneous writing.

Features covered in this code-along style video include:

  • fopen, fclose
  • writetable

Video Player is loading.
Current Time 0:00
Duration 22:24
Loaded: 0.73%
Stream Type LIVE
Remaining Time 22:24
 
1x
  • Chapters
  • descriptions off, selected
  • captions off, selected
  • en (Main), selected

    Play the video in full screen mode for a better viewing experience. 

    |
    • print

    Comments

    To leave a comment, please click here to sign in to your MathWorks Account or create a new one.

    Go to top of page