@ David Schwartz and @RKT are right, no CPU cycles are required to check the interrupt line.
Basically, a processor has a set of interrupt wires that are connected to a set of devices. When one of the devices has something to say, it includes an interrupt wire that starts the processor (without the help of any software) to pause the execution of current instructions and start the launch of the handler function.
. , ( , ) , , . N , N th , . , , , , , , , C " , X", " , Y", " , Z" .. , , .
( "" Unix) , , . , userland OS , , , . , , -, , . , , . , , , , . , , , , ( , ).