C realize read-write lock

1, Overview Case: write a case to test the read-write lock. Requirements: create three threads to write and five threads to read to test the read-write lock. Basic concepts of read-write lock: Read write locks are also called share exclusive locks. When the read-write lock is locked in read mode, it is locked in shared mode; When it is locked i ...

Posted on Wed, 01 Dec 2021 07:08:33 -0500 by KirstyScott