Question 1 |
A keyboard connected to a computer is used at a rate of 1 keystroke per second.
The computer system polls the keyboard every 10 ms (milli seconds) to check for
a keystroke and consumes 100 \mu s (micro seconds) for each poll. If it is determined
after polling that a key has been pressed, the system consumes an additional 200
\mu s to process the keystroke. Let T_1 denote the fraction of a second spent in polling
and processing a keystroke.
In an alternative implementation, the system uses interrupts instead of polling. An interrupt is raised for every keystroke. It takes a total of 1 ms for servicing an interrupt and processing a keystroke. Let T_2 denote the fraction of a second spent in servicing the interrupt and processing a keystroke. The ratio \frac{T_1}{T_2} is ______ . (Rounded off to one decimal place)
In an alternative implementation, the system uses interrupts instead of polling. An interrupt is raised for every keystroke. It takes a total of 1 ms for servicing an interrupt and processing a keystroke. Let T_2 denote the fraction of a second spent in servicing the interrupt and processing a keystroke. The ratio \frac{T_1}{T_2} is ______ . (Rounded off to one decimal place)
2.5 | |
15.3 | |
8.5 | |
10.2 |
Question 1 Explanation:
Question 2 |
Consider the following statements.
I. Daisy chaining is used to assign priorities in attending interrupts.
II. When a device raises a vectored interrupt, the CPU does polling to identify the source of interrupt.
III. In polling,the CPU periodically checks the status bits to know if any device needs its attention.
IV. During DMA, both the CPU and DMA controller can be bus masters at the same time.
Which of the above statements is/are TRUE?
I. Daisy chaining is used to assign priorities in attending interrupts.
II. When a device raises a vectored interrupt, the CPU does polling to identify the source of interrupt.
III. In polling,the CPU periodically checks the status bits to know if any device needs its attention.
IV. During DMA, both the CPU and DMA controller can be bus masters at the same time.
Which of the above statements is/are TRUE?
I and II only | |
I and IV only | |
I and III only | |
III only |
Question 2 Explanation:
Question 3 |
The following are some events that occur after a device controller issues an interrupt while process L is under execution.
(P) The processor pushes the process status of L onto the control stack.
(Q) The processor finishes the execution of the current instruction.
(R) The processor executes the interrupt service routine.
(S) The processor pops the process status of L from the control stack.
(T) The processor loads the new PC value based on the interrupt.
Which one of the following is the correct order in which the events above occur?
(P) The processor pushes the process status of L onto the control stack.
(Q) The processor finishes the execution of the current instruction.
(R) The processor executes the interrupt service routine.
(S) The processor pops the process status of L from the control stack.
(T) The processor loads the new PC value based on the interrupt.
Which one of the following is the correct order in which the events above occur?
QPTRS | |
PTRSQ | |
TRPQS | |
QTPRS |
Question 3 Explanation:
Question 4 |
Which interrupt in 8085 Microprocessor is unmaskable?
RST 5.5 | |
RST 7.5 | |
TRAP | |
Both (A) and (B) |
Question 4 Explanation:
Question 5 |
In 8085 microprocessor, the ISR for handling trap interrupt is at which location?
3CH | |
34H | |
74H | |
24H |
Question 5 Explanation:
There are 5 questions to complete.
Sir Question no. 5 is incomplete….
Please complete it….
Thank You Ankur Maurya,
We have updated the question.