LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-30-2011, 10:25 PM   #16
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940

An interrupt is nothing more and nothing less than .. "a little bell that goes off now and then" for various reasons. The computer can: respond to it, put it off for a bit, or stuff its head back underneath the pillow and ignore the thing completely.

Interrupts are simply nature's way of keeping a computer from spending 100% of its time fruitlessly waiting for something to happen. When something does happen, the little bell will ring. That's it. That's all.

I/O operations actually can happen in a different order from whence they were requested. The TCP/IP packets of a conversation can be sent in any order; the software protocol has to know how to renumber them and to detect that any of them are missing. Disk I/O requests are sorted in such a way that the read/write head assembly moves as efficiently across the platter as it possibly can ("seek time" being by-far the longest component of access time). (Sometimes a disk-write request doesn't actually cause a write to take place at all! So-called "lazy writing.")

I hope that my various attempts at explanation were helpful.
 
Old 11-30-2011, 10:43 PM   #17
tr3bble
LQ Newbie
 
Registered: Nov 2011
Posts: 1

Rep: Reputation: Disabled
Hi. Onebuck, are you suggesting the kernel doesn't know the order of data it is receiving, or that it has some other way of knowing the order than the responses comming in order, or the order being tagged somehow?

If the patent is wrong, how does the kernel know the order the data is supposed to be in?
 
Old 11-30-2011, 10:58 PM   #18
needle_
LQ Newbie
 
Registered: Nov 2011
Posts: 8

Rep: Reputation: 0
sundialsvs TCP packets use a SEQ (sequence number) to know order. Now that I have read this post, I am curious how the kernel knows the order of data, without it either being tagged, or received in order.

needle_
 
Old 11-30-2011, 11:15 PM   #19
needle_
LQ Newbie
 
Registered: Nov 2011
Posts: 8

Rep: Reputation: 0
Let's try to discern this mystery. The order has to somehow be specified. Whether it be unknown-quantum-voodoo-science (I think microsoft uses that form of ordering) or whether it be clearly stated as either a rule to default on or information communicated, that needs interpreted and/or parsed.

I think the topic has been covered, unless anyone can give an example out of interest, of a device that responds to requests out of order, and has any information outlining the protocol that communicates the order. (I don't think even a network card does that, it simply can receive the information out of order because of the difference in routes and the path that the packet takes traversing the internet, I still imagine it sends information inside the computer, in the order in which the network card received it, not that it entirely matters, the information is tagged to know which queue it belongs, and in which order.).

needle_
 
Old 11-30-2011, 11:53 PM   #20
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

Welcome to LQ!
Quote:
Originally Posted by tr3bble View Post
Hi. Onebuck, are you suggesting the kernel doesn't know the order of data it is receiving, or that it has some other way of knowing the order than the responses comming in order, or the order being tagged somehow?

If the patent is wrong, how does the kernel know the order the data is supposed to be in?
No, I made no suggestion. The Kernel does use the scheduler to control priorities. Hardware PIC controls the basic interrupt process which is serviced by a Interrupt handler routine. Once the kernel is aware of the service request then the kernel scheduler will handle the time slice for the service routine of the device. Data flow control will be dictated by the device driver and device. Protocol is set for the device type. One must remember that higher priority service requests may interrupt a current process, this is handled via the PC(program counter) and stack which is used to store return information that will bring things back to the state before the interrupt. Kernel scheduler will determine the time slice and priority for the service.

You can look at 'Linux Kernel Interactive Map' to get a good overview. Plus you can look at Interrupt Handling
& Linux Scheduling and Kernel Synchronization which are detailed explanations.

HTH!
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel panic: killing interrupt handler! In interrupt handler - not syncing. divyashree Programming 26 05-15-2010 01:27 PM
How to send a msg to a process from an interrupt handler btklee Linux - Kernel 5 12-05-2008 10:21 AM
control is not going to interrupt handler when interrupt comes in serial driver sateeshalla Linux - Kernel 1 05-04-2006 09:43 AM
<0>Kernel panic: Aiee, killing interrupt handler! In interrupt handler - not syncing mrb Linux - Newbie 2 01-09-2005 09:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:44 AM.

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