Can anyone explain how this code works? I am told
Arriving writers go next. Readers will have to wait for no active or waiting writers to enter the crit.