Operating System MCQs with Answers
Practice important Operating System MCQs with answers and explanations.
Multiple Choice Questions
Q301: A thread in UNIX/Linux is sometimes called a _________.
- A: Heavyweight process
- B: Lightweight process
- C: Job process
- D: Kernel process
View Answer
B
Q302: The ________ command in UNIX/Linux terminates a foreground process by sending a SIGINT signal.
- A: kill
- B: fg
- C: bg
- D:
View Answer
D
Q303: A thread in a multi-threaded process has its own _________.
- A: Register set
- B: Memory space
- C: File descriptor
- D: Process ID
View Answer
A
Q304: In UNIX/Linux, the <Ctrl-Z> command is used to _________.
- A: Suspend a process
- B: Terminate a process
- C: Move a process to the foreground
- D: Resume a suspended process
View Answer
A
Q305: The main disadvantage of using threads is the difficulty of _________.
- A: Debugging and synchronization
- B: Memory management
- C: CPU utilization
- D: Parallel execution
View Answer
A
Q306: Which command is used to display all signals supported by a UNIX/Linux system?
- A: kill
- B: kill -l
- C: ps
- D: top
View Answer
B
Q307: Which of the following is NOT an attribute of a thread?
- A: Program counter
- B: Stack
- C: Memory address space
- D: Memory shared with other threads
View Answer
C
Q308: In a multi-threaded process, each thread has its own _________.
- A: Stack
- B: Program counter
- C: Registers
- D: All of the above
View Answer
D
Q309: The fork() system call is expensive because it requires _________.
- A: Memory copy
- B: Signal handling
- C: CPU scheduling
- D: IPC handling
View Answer
A
Q310: What is the function of the kill -9 command in UNIX/Linux?
- A: Suspend a process
- B: Terminate a process with SIGTERM
- C: Send SIGINT signal to a process
- D: Send SIGKILL signal to a process
View Answer
D