Question: You have decided to contract out your p 3 implementation to various developers: the ape, the beaver, the cow, and the deer. Each contractor worked
You have decided to contract out your p 3 implementation to various developers: the ape, the beaver, the cow, and the deer. Each contractor worked tirelessly to provide a solution by the deadline. Some of them may not have been so successful. Assuming 3 semantics and the fact that interrupts are on initially, explain why each of the following code blocks is correct or incorrect. I/ ape auto tcb = active[SMP::me()]; tcb->work(); // beaver ato was = Interrupts: :disable(); auto core = SMP::me(); Interrupts: :restore(was); auto tcb = active[core]; tcb->work(); // cow auto was = Interrupts: :disable(); auto tcb = active[SMP::me()]; Interrupts: ;restore(was); tcb->work(); /I deer auto was = Interrupts: :disable(); auto tcb = active[SMP: :me()]; tcb->work(); Interrupts: restore(was)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
