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...

The ____ allows authentication between the server and the client and the negotiation of an encryption algorithm and cryptographic keys before any actual data is transmitted.

A. TLS Record Protocol B. Secure FTP C. TLS Handshake Protocol D. HTTP

Computer Science & Information Technology

You created a slicer on the field State. What items would you be most likely to see in the slicer?

A. State 1, State 2 B. AL, CA, GA, KY, MS, NC, OR, and VA C. Sales totals for each state D. A map of the US with the states represented as active.

Computer Science & Information Technology