Advanced Programming in the UNIX Environment: Week 12, Segment 3 - Resource Locking
Channel: cs631apue
Date: 22/11/2020

In this video lecture, we discuss resource- and record locking using flock(2), lockf(3), and fcntl(2).

Slides for this lecture: https://stevens.netmeister.org/631/12-locking.pdf
Course website: https://stevens.netmeister.org/631/

Outline:
00:00 Introduction
02:13 flock(2)
04:01 flock(2) example
06:37 fcntl(2)
07:18 lockf(3)
08:41 lock release on file close
09:53 mandatory locking
11:44 Recap and exercises