70.9k views
3 votes
Q1-What is Polling? Discuss at least two disadvantages of polling?

Q2-What is memory interleaving? How it’s used for performance enhancements?

User Sherod
by
7.2k points

1 Answer

2 votes

Answer:

Step-by-step explanation:

Q1: Polling is a method of computer programming where a program repeatedly checks a specific location in memory for new data or an event to occur. This is often done in a loop, where the program continuously checks for new data or an event until it occurs.

Two disadvantages of polling are:

It can be inefficient, as the program must continuously check for new data or an event, which can consume a lot of processing power.

It can also lead to missed events or data, as the program may not be checking at the exact moment when the event or data occurs.

Q2: Memory interleaving is a technique used to improve the performance of computer memory systems by spreading data across multiple memory modules. This is done by interleaving the memory addresses so that data is spread evenly across all the modules, rather than being stored in one module.

This technique is used for performance enhancements because it allows for faster access to data by allowing multiple memory modules to be accessed at the same time, rather than having to access data from one module at a time. This results in faster data transfer rates and improved system performance. Additionally, memory interleaving can also improve the reliability of a system by spreading data across multiple memory modules, which reduces the risk of data loss in the event of a module failure.

User Dragos Stoica
by
7.1k points