LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Tags used in this thread
Popular LQ Tags ,

Reply
 
Thread Tools
Old 11-03-2009, 01:24 PM   #1
bluehaze92
LQ Newbie
 
Registered: Nov 2009
Location: Texas, USA
Posts: 2
Thanked: 0
Question Do Kernel timer handlers execute on individual threads?


[Log in to get rid of this advertisement]
Hello,
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.
windows_xp_2003 bluehaze92 is offline  
Tag This Post ,
Reply With Quote
Old 11-04-2009, 05:22 AM   #2
cladisch
Member
 
Registered: Oct 2008
Location: Earth
Distribution: Slackware
Posts: 133
Thanked: 23
Timer handlers are executes as soft interrupts, i.e., not in a thread; they cannot sleep.
linuxslackware cladisch is offline     Reply With Quote
Thanked by:
Old 11-06-2009, 08:08 PM   #3
yaplej
Member
 
Registered: Apr 2009
Posts: 69
Thanked: 0
If you dont mind could you show the code you use to execute your function?

Thanks.
windows_98_nt_2000 yaplej is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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


All times are GMT -5. The time now is 07:04 AM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration