What is the main benefit of using threads over processes for multitasking? MCQ with Answer and Explanation

What is the main benefit of using threads over processes for multitasking?
A. Threads can run on multiple cores simultaneously
B. Threads share memory space, reducing context-switching overhead and communication costs
C. Threads are more secure
D. Threads are easier to implement
Answer: Option B
Solution (By JKSSB Mock Tests)
Threads within the same process share memory and resources, making context switching and inter-thread communication faster and less resource-intensive.

Discuss this Question (0)

No comments yet. Be the first to start the discussion!

Practice More Operating Systems Questions

Question #1
In Windows, the 'Registry' has five root keys. Which one contains information about the current hardware configuration?
A. HKEY_CURRENT_CONFIG
B. HKEY_CLASSES_ROOT
C. HKEY_CURRENT_USER
D. HKEY_LOCAL_MACHINE\HARDWARE

Correct Answer: Option A


Explanation:
HKEY_CURRENT_CONFIG (HKCC) stores information about the current hardware profile; HKLM\HARDWARE also contains hardware info.

This question belongs to: Computer Operating Systems
Question #2
Which Linux command is used to show the system's current date and time?
A. time
B. clock
C. date
D. timedatectl

Correct Answer: Option C


Explanation:
date displays and sets the system date/time; timedatectl is systemd's tool for date/time management.

This question belongs to: Computer Operating Systems
Question #3
Which Linux command is used to compress files using the gzip algorithm?
A. gzip
B. zip
C. bzip2
D. tar

Correct Answer: Option A


Explanation:
gzip compresses files using the Lempel-Ziv coding (LZ77) with a .gz extension; zip is a different format, and tar is an archiver.

This question belongs to: Computer Operating Systems