* reschedule twice from wake_up()?
@ 2002-02-12 19:40 Luben Tuikov
0 siblings, 0 replies; only message in thread
From: Luben Tuikov @ 2002-02-12 19:40 UTC (permalink / raw)
To: linux-kernel
Scenario:
atomic_t start, end;
current is the only task in wq;
consumer does: wait_even_interruptible(wq, start != end)
producer does: end++; wakeup_interruptible(wq)
Is it possible that the task in wq will be scheduled twice,
once since end >= start (mod something) and again since,
wakeup_interruptible was called?
--
Luben
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-02-12 19:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-02-12 19:40 reschedule twice from wake_up()? Luben Tuikov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox