Answer:
See explaination
Explanation:
The code
type printer = monitor
var P: array[0…2] of boolean;
X: condition;
procedure acquire (id: integer, printer-id: integer);
begin
if P[0] and P[1] and P[2] then X.wait(id)
if not P[0] then printer-id := 0;
else if not P[1] then printer-id := 1;
else printer-id := 2;
P[printer-id]:=true;
end;
procedure release (printer-id: integer)
begin
P[printer-id]:=false;
X.signal;
end;
begin
P[0] := P[1] := P[2] := false;
end ;
Note:
Monitors are implemented by using queues to keep track of the processes attempting to become active int he monitor. To be active, a monitor must obtain a lock to allow it to execute the monitor code. Processes that are blocked are put in a queue of processes waiting for an unblocking event to occur.
Answer: (B) Migrating all VMs off the host.
Explanation:
VMs migration is the virtual machine migration that basically change the workloads automatically in the system. The maintenance of the schedule results into the downtime in the server for users. In the mission critical environment, when we performing various types of maintenance operation on the host we first require migrate all the virtual machine.
In the critical environment there is a chance that the data in the given host may be critical and the data in the virtual machine (VM) may be in critical position in the host.
Set-associative mapping allows that each word that is present in the cache can have two or more words in the main memory for the same index address. Set associative cache mapping combines the best of direct and associative cache mapping techniques.
Answer:
the ROM chip
Explanation:
the ROM chip is installed on the motherboard which helps boot the system
Answer:
setTimeout is a native JavaScript function (although it can be used with a library such as jQuery, as we'll see later on), which calls a function or executes a code snippet after a specified delay (in milliseconds).