in CO and Architecture edited by
471 views
0 votes
0 votes

Under the SOFTWARE METHOD – POLLING heading.

What is the meaning of this line?

“In this method, all interrupts are serviced by branching to the same service program”.

https://www.geeksforgeeks.org/priority-interrupts-sw-polling-daisy-chaining/

in CO and Architecture edited by
by
471 views

1 comment

it means, you have a file, in that file( service program ) the code is :

if (device[0].flag)
    device[0].service();   // branch to device[0].service() to service device0
else if (device[1].flag)
    device[1].service();  // branch to device[1].service() to service device1
.
.
.
.
.
.
else
    //raise error

polling --- doesn't know which device is cause the interrupt, so we check every time this file and service according to it ( by branching from the file )!

0
0

1 Answer

0 votes
0 votes
the "same service programs" refers to the ISR(Interrupt service routine) which is executed when interrupt is raised.

since interrupt is raised from single interrupt request line to which many devices are connected. If more than one device raises an interrupt , a priority or first come first serve basis may be decided for servicing the devices.  So polling is a method in which the servicing is done by checking each device for possible interrupt request. Any device which is found requesting service , it's subroutine is executed by branching from the original ISR , in which conditional branching code for the devices will be contained.

Related questions