Computers and Technology

Memory Allocation Monitor: suppose there are two operations: request (amount) and release (amount) where amount is a positive integer. When a process calls request, it delays until at least amount free pages of memory are available. Processes return amount pages to the free pool by calling release. Each time amount is generated randomly. The memory has a capacity of C equal to1024 pages. A process shouldn't require more than allowed_limit (initialized to 64) pages. If amount is greater than allowed_limit, then the process should execute a new request(amount). a) Develop a monitor to synchronize processes. You can use two methods named: request (amount) and release (amount) (draw the monitor picture, give the thread execution pseudo-code, give service methods' pseudo-code, initialization, condition variables) Use the concept of monitors: cond var have names, are implemented as queues with FIFO policy. You can use any of the two signal policies but specify which one you use. Don't use notifyAll.

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 17:00, naomicervero
Which process would best represent the opposite of exhausting air from a system?
Answers: 2
image
Computers and Technology, 22.06.2019 13:30, AsiaDeas4078
Write lines of verse that rhyme to remember the following information: acid rain is a type of air pollution caused by chemicals in the air.
Answers: 1
image
Computers and Technology, 23.06.2019 02:30, jaueuxsn
Which component acts as a platform on which application software runs
Answers: 2
image
Computers and Technology, 24.06.2019 00:20, danielmartinez024m
The guy wire bd exerts on the telephone pole ac a force p directed along bd. knowing the p must have a 720-n component perpendicular to the pole ac, determine the magnitude of force p and its component along line ac.
Answers: 2
Do you know the correct answer?
Memory Allocation Monitor: suppose there are two operations: request (amount) and release (amount) w...

Questions in other subjects:

Konu
English, 24.01.2021 05:00