✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Consider the solution to the readers and writers problem based on semaphores (slides 6-7). Why do we need to check the variable rc in the following line of the reader procedure?
if (rc == 1) down(&db);