{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

os Answers to Second Quiz

os Answers to Second Quiz - Second Quiz of Operating System...

Info icon This preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Second Quiz of Operating System 2004/12/20 – 12/21 Class: 3A and 3B 1. Provide one programming example of multithreading that improves performance over a single-threaded solution? (2%) Ans: Any one of the following is ok: A Web server that services each request in a separate thread. A parallelized application such as matrix multiplication where different parts of the matrix may be worked in parallel. An interactive GUI program such as a debugger where a thread is used to monitor user input, another thread represents the running application, and a third thread monitors performance. 2. What are two differences between user-level threads and kernel-level threads? (4%) Ans: (a) User-level threads are unknown by the kernel, whereas the kernel is aware of kernel threads. (b) User-level threads are scheduled by the thread library and the kernel schedules kernel-level threads. 3. What is the functionality of a stub in RPC? (2%) (3A) Ans: (a) Marshall / Un-marshall parameters. (b) Send / Receive messages over the network 4.
Image of page 1
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern