OS MCQ Important
OS MCQ Important
2. Which scheduling algorithm aims to minimize the average waiting time for
processes?
A. First-Come-First-Serve (FCFS)
B. Shortest Job Next (SJN)
C. Round Robin (RR)
D. Priority Scheduling
4. The time taken by a process from the time of submission to the time of completion is
called:
A. Turnaround time
B. Waiting time
C. Execution time
D. Response time
6. The Shortest Job Next (SJN) scheduling algorithm selects the process with the:
A. Longest execution time
B. Shortest execution time
C. Highest priority
D. Lowest priority
10. A process that has completed execution and has exited is said to be in the:
A. Ready state
B. Running state
C. Blocked state
D. Terminated state
14. Which of the following is NOT a potential solution to preventing race conditions?
A. Using semaphores or mutexes.
B. Employing multi-core processors.
C. Implementing thread-safe data structures.
D. Applying proper synchronization techniques.
15. In a multi-threaded program, when two threads simultaneously access and modify a
shared variable, what may be needed to prevent a race condition?
A. A faster processor.
B. Synchronization mechanisms like locks or semaphores.
C. A larger stack size for each thread.
D. Reordering the code execution sequence.