Re: Can a Bottom half be scheduled from a kernel thread

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> For example, if there is some work which is prepared ready by a kernel
> thread (but thread dont want to process it immediately, rather want to
> deffer it for sometime) and the intention is to process this "prapared work"
> at some later time. In the situation like this, can we use the tasklet to do
> this?

Isn't the purpose of the (kernel) thread itself is to DO deferred
work? Tasklets, if I remember, are run only once at *some* later stage
of processing an interrupt.

Why can't use another kernel thread itself (or maybe even a timer) to
schedule your work?

See this link which explains the difference between the 2 succinctly:

http://www.makelinux.net/ldd3/chp-7-sect-6

HTH,
-mandeep


>
>
>
>
>
> On Tue, May 13, 2014 at 6:28 AM, Pranay Srivastava <pranjas@xxxxxxxxx>
> wrote:
>>
>>
>> On May 13, 2014 2:36 AM, "Vishwas Srivastava" <vishu.kernel@xxxxxxxxx>
>> wrote:
>> >
>> > Hi All,
>> >             This may sound a dumb question. I just want to know if a
>> > tasklet can be scheduled from a kernel thread.
>>
>> You can do tasklet_schedule in case I am getting your question.
>>
>> > what are the pros and crons of doing so?
>>
>> Don't sleep or schedule the tasklet code. It needs to be atomic since it
>> runs via TASKLET_SOFTIRQ.
>>
>> > thanks,
>> > Vishwas S
>> >
>> > _______________________________________________
>> > Kernelnewbies mailing list
>> > Kernelnewbies@xxxxxxxxxxxxxxxxx
>> > http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>> >
>
>
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies@xxxxxxxxxxxxxxxxx
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies




[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux