연락처

텍트로닉스 담당자와 실시간 상담 6:00am-4:30pm PST에 이용 가능

전화

전화 문의

9:00am-6:00PM KST에 이용 가능

다운로드

매뉴얼, 데이터 시트, 소프트웨어 등을 다운로드할 수 있습니다.

다운로드 유형
모델 또는 키워드

피드백

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

질문:

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

답변:

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.

이 FAQ는 다음에 적용 됩니다:

제품 시리즈 없음

제품:

FAQ ID 70596

모든 FAQ 보기 »