diff options
Diffstat (limited to 'spinlock.c')
-rw-r--r-- | spinlock.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -20,8 +20,8 @@ initlock(struct spinlock *lock, char *name) // Acquire the lock. // Loops (spins) until the lock is acquired. -// (Because contention is handled by spinning, -// must not go to sleep holding any locks.) +// Holding a lock for a long time may cause +// other CPUs to waste time spinning to acquire it. void acquire(struct spinlock *lock) { |