* Question: schedule()
@ 2007-03-06 8:18 Mockern
2007-03-06 9:13 ` albcamus
2007-03-06 9:14 ` Schmidt Michal
0 siblings, 2 replies; 4+ messages in thread
From: Mockern @ 2007-03-06 8:18 UTC (permalink / raw)
To: linux-kernel
Hi,
What does schedule() function do? I want to make my kthread preemptive.
Thanks
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: Question: schedule()
2007-03-06 8:18 Question: schedule() Mockern
@ 2007-03-06 9:13 ` albcamus
2007-03-09 4:39 ` Bill Davidsen
2007-03-06 9:14 ` Schmidt Michal
1 sibling, 1 reply; 4+ messages in thread
From: albcamus @ 2007-03-06 9:13 UTC (permalink / raw)
To: Mockern; +Cc: linux-kernel
your kthread IS preemptible unless you call preempt_disable or some
locking functions explicitly .
Regards,
albcamus
2007/3/6, Mockern <Mockern@yandex.ru>:
> Hi,
>
> What does schedule() function do? I want to make my kthread preemptive.
>
> Thanks
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Question: schedule()
2007-03-06 8:18 Question: schedule() Mockern
2007-03-06 9:13 ` albcamus
@ 2007-03-06 9:14 ` Schmidt Michal
1 sibling, 0 replies; 4+ messages in thread
From: Schmidt Michal @ 2007-03-06 9:14 UTC (permalink / raw)
To: Mockern; +Cc: linux-kernel
Mockern wrote:
> Hi,
>
> What does schedule() function do? I want to make my kthread preemptive.
It makes a scheduling decision, i.e. it assigns the CPU time to a
suitable runnable task. If called with the current task's state set to
TASK_(UN)INTERRUPTIBLE, it puts the task to sleep.
Kernel threads are preemptible if the kernel is configured with
CONFIG_PREEMPT.
What exactly are you trying to do?
If you're new to Linux kernel programming, I suggest you read Robert
Love's book "Linux Kernel Development".
"Linux Device Drivers" by J.Corbet, A.Rubini and G.Kroah-Hartman will be
very helpful too and it is available online: http://lwn.net/Kernel/LDD3/
Michal
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Question: schedule()
2007-03-06 9:13 ` albcamus
@ 2007-03-09 4:39 ` Bill Davidsen
0 siblings, 0 replies; 4+ messages in thread
From: Bill Davidsen @ 2007-03-09 4:39 UTC (permalink / raw)
To: albcamus; +Cc: Mockern, linux-kernel
albcamus wrote:
> your kthread IS preemptible unless you call preempt_disable or some
> locking functions explicitly .
>
I think he's trying to go the other way, make his thread the highest
priority to blow anything else in the system out of the water. See his
previous post "how to make kernel thread more faster?"
--
Bill Davidsen <davidsen@tmr.com>
"We have more to fear from the bungling of the incompetent than from
the machinations of the wicked." - from Slashdot
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-03-09 4:37 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-06 8:18 Question: schedule() Mockern
2007-03-06 9:13 ` albcamus
2007-03-09 4:39 ` Bill Davidsen
2007-03-06 9:14 ` Schmidt Michal
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.