Polling or Interrupt based method

前端 未结 14 2572
暗喜
暗喜 2020-12-12 13:44

When should one use polling method and when should one use interrupt based method ? Are there scenarios in which both can be used ?

14条回答
  •  不知归路
    2020-12-12 14:21

    the short answer is to use the interrupt method when polling is too slow. (by too slow, I mean if polling loses data, the interrupt method is necessary)

提交回复
热议问题