Contactez-nous

Chat en direct avec un représentant Tek. Service disponible de 9 h à 17 h, CET jours ouvrables.

Téléphone

Appelez-nous au

Disponible de 9 h à 17 h CET jours ouvrables.

Télécharger

Télécharger des manuels, des fiches techniques, des logiciels, etc. :

TYPE DE TÉLÉCHARGEMENT
MODÈLE OU MOT CLÉ

Feedback

What is the difference between polling and event-driven background operation?

Question :

What is the difference between polling and event-driven background operation?

Réponses :

Polling is known to be the method of reading or writing a single value from a data acquisition system. The time between polled readings is scheduled by the operating system, such as Windows. Therefore, it is not deterministic and depends on multiple factors in the system, such as computer speed, operating systems, programming languages, and code optimization. A background operation, also known as DMA or Interrupt driven operation, is a task that runs under the control of the data acquisition hardware and notifies the application when it is complete. The time between background readings is clocked by the data acquisition hardware and is independent of Windows timing. During a background data transfer, the data acquisition hardware interrupts the CPU and the driver handles these interrupts by transferring the data into the application memory space. In addition, when the requested background operation is finished, the driver posts a Windows message or event to the application that will respond to this event and manipulate the data. While a polled operation is simple to program, it is generally advisable to use event-driven operations because they are more portable, robust, and less dependent on the operating system timing.

Cette FAQ concerne :

Aucune série du produit

Produit :

Numéro de la FAQ 70596

Afficher toutes les FAQ »