Instructions for the animation


In the animation of reader-writer problem, I represent the room to read and write as the critical section. For every critical section, doors play roles of semaphore. The explanation about matching algorithm and the animation is the following.

: Readers and Writers

: "wrt" and "mutex" semaphore


The mapping algorithm to image is as follows: