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


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

1 Expert Approved Answer
Step: 1 Unlock

Solution A The code for P operation is P ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Document Format (2 attachments)

PDF file Icon

635f7845e0cb5_232072.pdf

180 KBs PDF File

Word file Icon

635f7845e0cb5_232072.docx

120 KBs Word File

Students Have Also Explored These Related Operating System Questions!