What is the difference between "lock out" and "lock"? Can "lock" be used instead of "lock" in the following?
"When any process executes a system call, a trap is made to the operating system, which carries it out, using semaphores, monitors, or something equivalent, to lock out other CPUs while critical sections are being executed or central tables are being accessed."
anonymous Can "lock" be used instead of "lock" in the following? No. Those are different.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.
anonymousCan "lock" be used instead of "lock" in the following?
No. Those are different.
You lock the door. That's so you can lock out the people who want to go through the door. Completely different things.
With your example, you don't lock the other CPU's; you lock them out, i.e., you stop them from getting in.