Midterm Exam Part II-2.docx - CS4448 Operating Systems Midterm Exam Spring 2020 Part II 1.True\/False See Midterm Exam Part I 2 Here are definitions of

Midterm Exam Part II-2.docx - CS4448 Operating Systems...

This preview shows page 1 - 3 out of 6 pages.

CS4448 Operating Systems Midterm Exam Spring 2020 Part II 1.True/False ( See Midterm Exam Part I) 2. Here are definitions of long-term scheduler and short-term scheduler. Please mark which one is for long-term scheduler and which one is for short-term scheduler. Please also point out which scheduler controls the degree of multi-process. (6)Short term scheduler selects which process should be executed next and allocates CPU Long-term scheduler selects which processes should be brought into the ready queue Long-term scheduler controls the degree of multiprogramming 3. Here are definitions of I/O-bound process and CPU-bound process, please mark which one is for I/O-bound process, which one is CPU-bound process. (4) 4. Amdahl’s Law: Identifies performance gains from adding additional cores to an application that has both serial and parallel components (12)We assume Sis Serial portion of a program while Nis the number of processes. If S=0.4,N=what is the maximum of speedup? If S=0.4,N=8what is the maximum of speedup? Compare the results,how the change of serial portion impacts the change of speedup? 4 , Answer:
5. Here is code for bounded-buffer problem (8)

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture