Separate thread stacks make one thread's stack memory inaccessible to every other thread in the process.
Circle one: True False
What memory do threads within one process share?
Why does creating a thread usually need less address-space setup than creating a process?
Two OS-scheduled threads share a process on one CPU. A waits for disk input, while B is runnable and has independent computation to do. What can happen?
A uses local variable a, B uses local variable b, and both update global total. Neither local variable is passed to the other thread. Which variable is explicitly accessed by both?
Which part of the setup can a switch between two threads of one process keep unchanged?
A shared pair starts left = 1, right = 1. A writer changes both to 2. A reader needs matching values. Which coordination is needed?
In a non-atomic teaching trace, total starts at 4. A and B each read 4, add 1 locally, then store their result. A stores before B. What is the final total?