Which of the following statements about processes and threads is INCORRECT?
medium🐞 Bug Identification Q14 of Q15
Operating Systems - Process vs Thread - Key Differences
Which of the following statements about processes and threads is INCORRECT?
AThreads within the same process share the same memory space
BContext switching between threads is more expensive than between processes
CProcesses have separate memory spaces and do not share resources by default
DThreads can communicate more efficiently than processes due to shared memory
Step-by-Step Solution
Step 1: Verify thread memory sharing
Threads share memory within a process, so Threads within the same process share the same memory space is correct.
Step 2: Verify process isolation
Processes have separate memory spaces, so Processes have separate memory spaces and do not share resources by default is correct.
Step 3: Compare context switching costs
Thread context switching is lighter and faster than process switching, so Context switching between threads is more expensive than between processes is incorrect.
Step 4: Confirm communication efficiency
Threads communicate efficiently via shared memory, so Threads can communicate more efficiently than processes due to shared memory is correct.
Final Answer:
Option B -> Option B
Quick Check:
Thread context switches are cheaper than process context switches [OK]
Quick Trick:Thread switches cheaper than process switches [OK]
Common Mistakes:
MISTAKES
Assuming process context switches are cheaper
Confusing memory sharing between threads and processes
Believing threads cannot communicate efficiently
Trap Explanation:
PITFALL
Option C is a common misconception; candidates often overestimate thread context switch cost.
Interviewer Note:
CONTEXT
Tests ability to spot subtle misconceptions about process and thread behavior.
Master "Process vs Thread - Key Differences" in Operating Systems
2 interactive learning modes - each teaches the same concept differently