On a certain computer we estimate that, regardless of the OS it runs, thread scheduling costs about
50 ?s, a null procedure call 1 ?s, a context switch to the kernel 20 ?s and a domain transition 40
?s. For each of Mach and SPIN, estimate the cost to a client of calling a dynamically loaded null
procedure.

What will be an ideal response?

Mach, by default, runs dynamically loaded code in a separate address space. So invoking the code involves
control transfer to a thread in a separate address space. This involves four (context switch + domain transitions)
to and from the kernel as well as two schedulings (client to server thread and server thread to client thread) --
in addition to the null procedure itself.
Estimated cost: 4(20 + 40) + 2*50 + 1 = 341 ?s
In SPIN, the call involve two (context switch + domain transitions) and no thread scheduling.
Estimated cost: 2(20 + 40) + 1 = 121 ?s.

Computer Science & Information Technology

You might also like to view...

When applying conditional formatting, if the rule: =K10>3000 is used ________

A) the conditional format will be applied only if the content of K10 is more than 3000 B) the conditional format will be applied only if the content of K10 is less than 3000 C) the conditional format will be applied only if the content of K10 is greater than or equal to 3000 D) the conditional format will always be applied to cell K10

Computer Science & Information Technology

Which of the following tools would be used to test the break in a fiber connection on the network?

A. Butt set B. Multimeter C. Toner probe D. OTDR

Computer Science & Information Technology