NPTEL Operating System Fundamentals Week 5 Assignment Answers 2024
1. Assume we are running an application on a system with four processing cores. This application has both serial (nonparallel) and parallel components. Also, assume that 60% of this application are executed in parallel and 40% of the application is executed in serial. Based on the Amdahl’s Law, this application gets a speedup (approx.) of
(A) 1.30 times
(B) 1.42 times
(C) 1.25 time
(D) 1.81 times
(E) 1.20 times
Answer :- For Answers Click Here
2. The many-to-one multithreading model supports
(A) Many user-level threads only
(B) Many kernel-level threads only
(C) One user-level thread and many kernel-level threads
(D) Many user-level threads and one kernel-level thread
(E) Many user-level threads and many kernel-level threads
Answer :- For Answers Click Here
3. Which is of the following multithreading model is unsuitable for multicore systems?
(A) Many-to-one
(B) One-to-one
(C) Many-to-Many
(D) One-to-Many
(E) Many-to-Partial
Answer :- For Answers Click Here
4. Which of the multithreading model blocks the entire process if a thread, which is a part of the process, makes a blocking system call?
(A) Many-to-Many
(B) Many-to-one
(C) Many-to-Partial
(D) One-to-Many
(E) One-to-one
Answer :-
5. Which of the following operating systems does not support the Many-to-Many multithreading model?
(A) Solaris
(B) HP-UX
(C) Tru64 UNIX
(D) IRIX
(E) Windows 11
Answer :-
6. Which system calls allow the calling thread to wait for another thread to terminate?
(A) pthread_create
(B) pthread_exit
(C) pthread_join
(D) pthread_detach
(E) pthread_wait
Answer :- For Answers Click Here
7. Which of the following statements about non-preemptive scheduling is NOT true?
(A) Once a process starts executing, it runs to completion before another process can begin.
(B) It is simpler to implement compared to preemptive scheduling.
(C) It can lead to longer waiting times for processes with short burst times.
(D) It allows the operating system to preempt a running process to give CPU time to a higher-priority process.
(E) It is commonly used in batch-processing systems.
Answer :-
8. Which of the following is not the task of the dispatcher?
(A) A Dispatcher saves the context (state) of the currently running process.
(B) A Dispatcher restores the context of the next process to run.
(C) A Dispatcher helps to switch the CPU mode between user mode and kernel mode.
(D) A Dispatcher manages the main memory for process scheduling.
(E) A dispatcher provides the control of the CPU to that process that gets selected by the short term-scheduler.
Answer :-
9. Choose the correct option for FCFS scheduling algorithm.
(A) It ensures the shortest average waiting time.
(B) It is suffered from the convoy effect.
(C) It is a preemptive scheduling algorithm.
(D) It guarantees maximum throughput.
(E) It uses a priority queue to manage processes
Answer :-
10. Which of the following is not a criterion used to evaluate CPU scheduling algorithms?
(A) Throughput
(B) Response time
(C) Memory usage
(D) Turnaround time
(E) Waiting time
Answer :- For Answers Click Here