[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: semaphore and spin locks
You wrote (Dienstag, 10. Oktober 2000 07:00):
> Since a process has to busy wait on spin-lock, what if 2 or more
> processes get stuck on the same spin lock, which process will be
> allowed to enter the critical region..??
The lucky one that comes first - the hardware decides. I think there's
no guarantee for a process not to starve.
Atul, please adjust your system-clock.
Thomas.
-
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
IRC Channel: irc.openprojects.net / #kernelnewbies
Web Page: http://www.kernelnewbies.org/