LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-03-2014, 10:57 AM   #1
theone.prav
LQ Newbie
 
Registered: Sep 2012
Posts: 10

Rep: Reputation: Disabled
what will happen to tasklet execution if interrupt occurs in between


The things I know about tasklet:

1. Tasklet runs with all interrupt enabled.
2. The tasklet runs in interrupt context.
3. It can't be sleep.
4. It runs in atomic way.
5. It has the assurance to be scheduled never late than next tick.

My questions:

1. Since in bottom half all interrupts are enabled, what happened If a tasklet is running and in between any interrupt comes. (If interrupts are
disabled during tasklet execution then what is the benefit of tasklet)?

2. Why is the surety that tasklet will always be scheduled upto next tick?

3. Is it correct to say that tasklets are softirq with priority level 0(Hi priority tasklet) and priority level 6(Normal taslet)?
 
Old 03-03-2014, 12:19 PM   #2
anupamsr
Member
 
Registered: Sep 2004
Location: India
Distribution: Kubuntu, Archlinux, Suse, Gentoo, Mandrake
Posts: 371

Rep: Reputation: 30
What is a tasklet? Is it related to any window manager in particular?
 
Old 03-03-2014, 12:26 PM   #3
theone.prav
LQ Newbie
 
Registered: Sep 2012
Posts: 10

Original Poster
Rep: Reputation: Disabled
tasklet is bottom half mechanism to defer the work later in linux.
 
Old 03-03-2014, 08:23 PM   #4
padeen
Member
 
Registered: Sep 2009
Location: Perth, W.A.
Distribution: Slackware, Debian, Gentoo, FreeBSD, OpenBSD
Posts: 208

Rep: Reputation: 41
Quote:
Originally Posted by anupamsr View Post
What is a tasklet? Is it related to any window manager in particular?
It's to do with interrupt handling in the kernel. There's plenty of detail on google, here's a brief one: tasklets.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to access dev structure from within a tasklet ? ramonfried Linux - Kernel 1 08-22-2011 02:33 PM
Passing data from interrupt handler function to tasklet function in kernel programmin double-out Programming 2 05-18-2010 10:10 PM
Kernel-mode process,when interrupt occurs? Felicia23 Linux - Kernel 2 01-30-2009 08:16 PM
process status when interrupt occurs? Felicia23 Linux - Kernel 1 01-28-2009 04:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration