Skip to contentSkip to conversation

question about wait_event

DISCUSSION yeyouqun 1 participant 1 message Apr 25, 2011

lore
Share & tools
lore

yeyouqun

author
#0 lore raw

Hi guys,I have some doubt about "wait_event". One group processes, say A, they calls "wait_event (wq, 1)", and one single process B calls "wake_up_all", the question is:

B only run once, so all the processes in A that hold the lock of
"wq" after B process, which will sleep on the "wq" forever, is it true? If true, how to stop it from happening?