• retagged by
15,370 views
34 34 votes

Consider the following statements.

  1. Daisy chaining is used to assign priorities in attending interrupts.
  2. When a device raises a vectored interrupt, the CPU does polling to identify the source of interrupt.
  3. In polling, the CPU periodically checks the status bits to know if any device needs its attention.
  4. During DMA, both the CPU and DMA controller can be bus masters at the same time.

Which of the above statements is/are TRUE?

  1. Ⅰ and Ⅱ only
  2. Ⅰ and Ⅳ only
  3. Ⅰ and Ⅲ only
  4. Ⅲ only

2 Answers

Best answer
37 37 votes

Answer : C

I is true

  • The daisy-chaining method of establishing priority consists of a serial connection of all devices that request an interrupt. The device with the highest priority is placed in the first position, followed by lower-priority devices up to the device with the lowest priority, which is placed last in the chain.

II. is false

  • Vectored interrupts are achieved by assigning each interrupting device a unique code, typically four to eight bits in length. When a device interrupts, it sends its unique code over the data bus to the processor, telling the processor which interrupt service routine to execute.

III. is true 

  • The process of periodically checking status bits to see if it is time for the next I/O operation, is called polling. Polling is the simplest way for an I/O device to communicate with the processor the processor. 

IV. is false 

  • Since CPU release bus only after getting request from DMA and get after DMA release the BUS.
• selected by
1 1 vote
Polling vs interrupt

Interrupts are asynchronous and triggered by external devices. The CPU does not need to actively check the status bits in this case.

 

Instead, the device signals the CPU via an interrupt line (e.g., INTR) when it needs attention.

The CPU acknowledges the interrupt after completing the current instruction and services the interrupt using an Interrupt Service Routine (ISR).

Polling:

In polling, the CPU actively checks the status bits of I/O devices to determine if they need attention.

Example: The CPU might repeatedly read a device's status register to see if a flag (like "data ready") is set.

So,polling is done from cpu side to check whether an io device needs attention.

Interrupt is generated by an io device to indicate the CPU's attention required.

Options

1.True. Daisy chaining is a method of assigning priorities to devices in a chain. The device closer to the CPU in the chain has higher priority, as it gets the interrupt acknowledgment signal first.

2.false. a vectored interrupt, the interrupting device provides a unique vector (address of the interrupt service routine) directly to the CPU. Polling is not required.Polling is not required in the typical case of vectored interrupts, even with multiple interrupt sources. However, in certain scenarios where multiple vectored interrupts occur simultaneously, the need for polling might arise.(When it is difficult for CPU to identify which device interrupted it.)

3.True. Polling involves the CPU actively checking the status registers of devices to see if they need service.

4.False. During DMA (Direct Memory Access), the CPU relinquishes control of the bus to the DMA controller. Only one device can be the bus master at a time to prevent bus contention.
• edited by
Answer:
Position:
Show:

Related questions

60 60 votes
4 answers 4 answers
25.0k
25.0k views
Arjun asked Feb 12, 2020
24,981 views
Consider a double hashing scheme in which the primary hash function is $h_1(k)= k \text{ mod } 23$, and the secondary hash function is $h_2(k)=1+(k \text{ mod } 19)$. Ass...
38 38 votes
6 answers 6 answers
16.1k
16.1k views
Arjun asked Feb 12, 2020
16,065 views
Consider the following data path diagram. Consider an instruction: $R0 \leftarrow R1 +R2$. The following steps are used to execute it over the given data...
49 49 votes
8 answers 8 answers
31.1k
31.1k views
Arjun asked Feb 12, 2020
31,104 views
A direct mapped cache memory of $1$ MB has a block size of $256$ bytes. The cache has an access time of $3$ ns and a hit rate of $94 \%$. During a cache miss, it takes $2...
51 51 votes
4 answers 4 answers
26.3k
26.3k views
Arjun asked Feb 12, 2020
26,312 views
A computer system with a word length of $32$ bits has a $16$ MB byte- addressable main memory and a $64$ KB, $4$-way set associative cache memory with a block size of $25...