user3458454
user3458454

Reputation: 321

How to know the time at which kernel starts executing after interruption?

Linux already contains all the interrupt handling for network data. don't have to do anything regarding this. Data arrives, Linux will process it (in the kernel) and pass it to the process waiting for the data. do not write interrupt handlers for network devices. You don't have to write an interrupt handler, because all the interrupt handlers needed are already provided by Linux. Just have your program read from the opened socket.

I want to know the time at which the kernel starts executing after the interruption. could some one help me how to know the time at which the kernel starts executing ??

how to copy the time when the interrupt occurs and send it back as a response to the client.

Upvotes: 0

Views: 140

Answers (1)

Nicolas Defranoux
Nicolas Defranoux

Reputation: 2676

This time will change according to what the machine is currently doing, if it is in a critical section where the interruptions are masked it will wait. Hopefully these critical sections are short. You can use a logic analyser to look at that (I did it a long long time ago on a Windows NT machine - pentium 100 MHz, and the usual interrupt latency was a few micro seconds, while with an IDE drive busy at the same time it was often 100 ms). I bet that with a recent machine and linux standard kernel it should always be a few microseconds, less than 30, but that's just a guess. Real time linux kernel will have a consistent response time.

Upvotes: 1

Related Questions