You are asked about OS concurrency fundamentals.
Prompt
-
What is the difference between a
process
and a
thread
?
-
Do processes and threads
share memory
? Explain what is shared vs not shared in each case.
-
What are the
risks
of shared memory (especially in multi-threaded programs), and how do you mitigate them?
Assume a typical modern OS (Linux/Windows/macOS) and a language/runtime that can create OS threads.