All of lore.kernel.org
 help / color / mirror / Atom feed
* When is to preempt safe?
@ 2011-10-07 11:27 Parmenides
  2011-10-07 16:32 ` Chetan Nanda
                   ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: Parmenides @ 2011-10-07 11:27 UTC (permalink / raw)
  To: kernelnewbies

Hi,

   Preemption has two cases: user preemption and kernel preemption. I
have tow questions about them.

1. According to Love, "If the kernel is returning to user-space, it
knows it is in a safe quiescent state. In other words, if it is safe
to continue executing the current task, it is also safe to pick a new
task to execute." What's the meaning of user preemption's safety? How
can we deduce safety of schedule from the current task going on?

2. Another statement from Love is that "the kernel can preempt a task
running in the kernel so long as it does not hold a lock". Why is it
not safe while kernel code holding lock?

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2011-10-09 13:52 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-07 11:27 When is to preempt safe? Parmenides
2011-10-07 16:32 ` Chetan Nanda
2011-10-08 16:19   ` Parmenides
2011-10-08 17:09     ` Daniel Baluta
2011-10-08 17:32       ` Dave Hylands
2011-10-09 11:52       ` Parmenides
2011-10-09 13:52         ` michi1 at michaelblizek.twilightparadox.com
2011-10-09  6:42     ` Michael Blizek
2011-10-07 16:44 ` Jonathan Neuschäfer
2011-10-07 19:39 ` Michael Blizek
2011-10-08 16:24   ` Parmenides
2011-10-09  6:29     ` Michael Blizek
2011-10-09  6:53       ` Dave Hylands
2011-10-09 13:44         ` michi1 at michaelblizek.twilightparadox.com

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.