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

Insertion of a node into a doubly linked list requires how many changes to next and prev pointers?

a. no changes b. 1 next, 1 prev c. 2 next, 2 prev d. 3 next, 3 prev e. none of the above

Computer Science & Information Technology

Using word processing applications like Microsoft Word to add formatting to text helps prevent hard-to-trace code errors that can arise in unformatted text in code.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

A(n) ________ is a punctuation symbol used to indicate an explanation or emphasis

Fill in the blank(s) with correct word

Computer Science & Information Technology

Registration is required for copyright protection, particularly when you need to prove ownership of a copyright, such as during a copyright-infringement lawsuit.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology