LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 04-05-2006, 08:24 AM   #1
asurya
LQ Newbie
 
Registered: Apr 2005
Posts: 10

Rep: Reputation: 0
Handling of Interrupts in thread context


Hi All,
I have a doubt regarding handling of interrupts in thread context.

Say, an interrupt has occurred in a kernel thread context and the interrupt handler got executed.

Will the control of execution return back to the kernel thread soon after the execution of the interrupt handler?
Or
The interrupt handler gets executed, and if any soft irqs are pending, they are executed followed by returning the control back to the thread.

Linux Kernel Version:2.4.20-8

Regards
Surya Santosh

Last edited by asurya; 04-05-2006 at 08:27 AM.
 
Old 04-05-2006, 09:15 AM   #2
halturata
Member
 
Registered: Aug 2005
Location: Sofia
Distribution: SuSE, ELinOS
Posts: 100

Rep: Reputation: 16
The pending interrupts have to have a higher IRQ level than that of the kernel thread to get executed before the executions is returned to the kernel thread. But honestly, I doubt they can...
If there are interrupts with higher IRQ level that this example kernel thread they anyway get executed before it.
 
  


Reply


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
kernel thread and signal handling oriate Linux - General 3 10-18-2005 12:41 PM
Kernel Thread Execution Context and PID ratwings Linux - Newbie 0 02-11-2005 04:06 AM
Main thread sending notification to child thread rajesh_b Programming 1 09-22-2004 09:15 AM
configure qt thread issue (just compiled qt w/ -thread option) cleff Linux - Software 8 05-07-2004 11:11 PM
about interrupts eshwar_ind Programming 1 02-25-2004 12:38 AM

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

All times are GMT -5. The time now is 09:46 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