const struct sigevent *intHandler(void *arg, int id)
start_clock = ClockCycles();
// Get IO privilege
ThreadCtl( _NTO_TCTL_IO, 0 );
// Setup COID and event
chid = ChannelCreate( 0 );
interruptID = InterruptAttach(10, intHandler, NULL, 0, 0);
if (interruptID == -1)
fprintf(stderr, “can’t attach to IRQ\n”);
end_clock = ClockCycles();
InterruptLatency = (double) (end_clock - start_clock)/(double)(SYSPAGE_ENTRY(qtime)->cycles_per_sec);
fprintf(stderr,"%lld milli seconds\n", InterruptLatency = (InterruptLatency *1e-3));
measurements  = InterruptLatency;
The above is the server code for receiving the data from client. I created a handler for server to handle the newly arrived data from client. the above code is running fine but why the kernel is not calling the
above handler when the new data is arrived from the client. I want to calculate the time at which the interrupt handler is called by the kernel. Could someone please help me.
It would be great help for me.
PLEASE ADMIN OST MY QUESTION VERY SOON: I WANT TO SUBMIT THIS PROJECT BY EVENING TO MU UNIVERSITY.