Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Linux - Kernel This forum is for all discussion relating to the Linux kernel.


  Search this Thread
Old 11-03-2009, 12:24 PM   #1
LQ Newbie
Registered: Nov 2009
Location: Texas, USA
Posts: 2

Rep: Reputation: 0
Question Do Kernel timer handlers execute on individual threads?

I've been working on a network device driver for kernel 2.6.27. In this driver, I have setup a timer to execute my handler function every 20ms. I was wondering if my handler function will execute in its own kenel thread or not?
I guess the core of the question is whether or not the kernel code which invokes a the timeout handler function, starts the function in a new kernel thread or not?

Thanks for your help.
Old 11-04-2009, 04:22 AM   #2
Registered: Oct 2008
Location: Earth
Distribution: Slackware
Posts: 228

Rep: Reputation: 54
Timer handlers are executes as soft interrupts, i.e., not in a thread; they cannot sleep.
Old 11-06-2009, 07:08 PM   #3
Registered: Apr 2009
Distribution: CentOS, Ubuntu, openSuSE
Posts: 160
Blog Entries: 1

Rep: Reputation: 22
If you dont mind could you show the code you use to execute your function?




Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Timer Threads mugdha Programming 1 04-30-2008 07:28 AM
how to create Timer based threads mugdha Programming 5 04-18-2008 08:16 AM
kill threads on fork, no exit handlers? ta0kira Programming 3 08-16-2007 07:15 PM
Creating a milisecond timeout timer for threads cardias Programming 5 08-05-2004 07:18 AM
Problems creating a milisecond timeout timer for threads cardias Linux - Software 1 08-04-2004 03:10 PM

All times are GMT -5. The time now is 03:22 PM.

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