✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.
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);