Question: a) . Consider two resources are available and value of semaphore is 2. Now consider operations P() and V() and their execution sequence P(), P(),
a) .Consider two resources are available and value of semaphore is 2. Now consider operations P() and V() and their execution sequence P(), P(), V(), P(), P(), V(), P(), P(), P(), V(), V(), P(). Answer the followings after the completion of above functions:
i.Number of the process which is sleeping on P()?
ii. What will be the value of semaphore?
iii. Number of available resources?
b) Find the value of logical address and limit register. The value of the base register is 400K and the value of the physical address is 532k.

Interrupt 800K Partition 4 700K Limit Register Comparator Partition 3 400K Partition 2 Base Register Adder 200K Partition 1 100K Memory Management Unit (MMU) Operating System Logical Address Physical Address
Step by Step Solution
3.45 Rating (152 Votes )
There are 3 Steps involved in it
Solution A The code for P operation is P ... View full answer
Get step-by-step solutions from verified subject matter experts
Document Format (2 attachments)
635f7845e0cb5_232072.pdf
180 KBs PDF File
635f7845e0cb5_232072.docx
120 KBs Word File
