GATE 2020 | OS | SEMAPHORE | CODE SECTION | SOLUTIONS ADDA | GATE TEST SERIES | EXPLAINED BY VIVEK
Автор: Solutions Adda - One Stop Solution for GATE & PSUs
Загружено: 2023-05-11
Просмотров: 702
Описание:
GATE 2020 Q54: Each of a set of n processes executes the following code using two semaphores a and b initialized to 1 and 0, respectively. Assume that count is a shared variable initialized to 0 and not used in CODE SECTION P.
wait (a); count = count+1;
if (count==n) signal (b);
signal (a); wait (b); signal (b);
What does the code achieve?
Website: https://solutionsadda.in/
ISRO / DRDO PYQs: https://solutionsadda.in/isro/
GATE PYQs : https://solutionsadda.in/gate1/
NIC - NIELIT PYQs: https://solutionsadda.in/nielit/
ISRO Complete Analysis: https://solutionsadda.in/isro-complet...
NIC-NIELIT Complete Analysis: https://solutionsadda.in/nielit/
GATE Complete Analysis: https://solutionsadda.in/gate-complet...
For GATE, BARC, ISRO, CIL, AAI, HAL, UGC NET JRF, NIC NIELIT, STQC NIELIT, NVS, KVS, DSSSB PGT/TGT
Test series : https://solutionsadda.in/test-series/
If you have any queries write a mail: [email protected]
Face Book Page: / solutionsaddain-111628724482494
Telegram: https://t.me/solutionsaddaforcse
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: