In this article, you will get NPTEL Assignment Answers of Week 5 (2023) of the course Operating System Fundamentals
Week 5 Due date: 2023-08-30, 23:59 IST.
CLICK HERE TO GO FOR WEEK 3 ASSIGNMENT OF OS FUNDAMENTALS (NPTEL)
Note : Answers are marked with red color.
1. Choose the correct option.
(A) MS-DOS operating system supports a single thread.
(B) Java runtime environment supports one process with multiple threads.
(C) Windows operating system supports multiple threads per process.
(D) Solaris operating system supports multiple threads per process.
(E) All of the above.
2. Which of the following operating systems support kemel threads?
(A) Windows XP/2000
(B) Solaris
(C) Linux
(D) Mac OS X
(E) All of the above
3. Which statement is incorrect in a many-to-one threading model?
(A) Multiple user threads are managed in user space.
(B) Multiple user threads map to a single kernel thread.
(C) There is no overhead of transition from user mode to kemel mode.
(D) The process will not be blocked even if any user thread executes a blocking system call.
(E) None of the above.
4. Which statement is incorrect in a one-to-one threading model?
(A) Each user thread maps to a kernel thread.
(B) Multiple threads can run in parallel on a multi-core system.
(C) The process will not be blocked even if a user thread executes a blocking system call.
(D)It needs full support from the OS to create and schedule threads.
(E) None of the above.
5. Which statement is incorrect in a many-to-many threading model?
(A)A user can create many user threads.
(B) Depending on the system architecture, the kemel creates a limited number of kemel threads.
(C) The process will be blocked if a user thread executes a blocking system call.
(D) Multiple threads can run in parallel on a multi-core system.
(E) It needs full support from the OS to create and schedule threads.
6. Which of the following operating systems supports one-to-one threading?
(A) Windows XP
(B) Windows 2000
(C) Linux
(D) Solaris 9
(E) All of the above
7. A signal
(A)is an asynchronous event.
(B) is handled by the appropriate signal handler.
(C)is delivered to a process by the kernel when an interrupt occurs.
(D) can be sent to a process by another process.
(E) All of the above
8. In a multi-threaded process, a signal can be delivered to
(A) the thread to which the signal applies.
(B) every thread in the process.
(C) certain threads in the process.
(D)a specific thread to receive all signals for the process.
(E) All of the above
9. The pthread_create() system call
(A) returns the thread id if the thread creation is successful.
(B) returns an error number if the thread creation is unsuccessful.
(C) fails if the system lacks the necessary resources to create a new thread.
(D)is used to create a new thread.
(E) All of the above
10. For a single-threaded kernel, the number of system calls that can be handled by the OS concurrently is
(A) At least one
(B) At most one
(C) At most two
(D) At most three
(E) None of the other options
11. For the following set of processes scheduled using FCFS policy, determine the average waiting time.
(A) 5.67
(B) 6.00
(C) 7.00
(D) 8.00
(E) 9.54
12. For the following set of processes scheduled using FCFS policy, determine the average turnaround time.
(A) 10.66
(B) 11.66
(C) 12.66
(D) 13.68
(E) 14.70
13. For the following set of processes scheduled using FCFS policy, determine the average response time.
(A) 5.00
(B) 5.56
(C) 6.00
(D) 7.00
(E) 7.50
14. Which statement is true for a preemptive scheduling algorithm?
(A) CPU is allocated for the entire burst time to a process
(B) Race conditions will never occur if data are shared among multiple processes
(C) UNIX OS is not supporting preemptive scheduling
(D) Round-Robin is not supporting preemptive scheduling
(E) A low-priority process will wait if a high-priority process arrives simultaneously
15. The selection of a process scheduling policy affects
(A) Maximum CPU utilization
(B) Maximum throughput
(C) Minimum turnaround time
(D) Minimum response time
(E) All of the above