https://suchprogramming.com/epoll-in-3-easy-steps/

 

https://www.quora.com/What-are-the-key-differences-between-edge-triggered-and-level-triggered-interrupts#

 

 

, works at Larsen & Toubro Infotech (2018-present)
 
 

Edge triggered is like a revolver trigger . When the trigger of revolver is pulled a bullet is fired . So even if the trigger is not released from pulled position no bullets are fired . Edge triggered is concerned only from the signal going 0 to 1 or vice versa.

Now think of a machine gun . Once I pull the trigger , bullets would be fired till it comes to its original position .. this refers to level triggered

.

.

A better example is a smartphone keypad and a keyboard .

In a keypad if you press a key it would still display a single character no matter how many seconds you press it for . ( for e.g. if I press 6 for 5 seconds smartphone would still display 6 once ). This is edge triggered . We perform a particular action only if signal changes from 0 t0 1 or 1 to 0 . For e.g. if a signal is active high and edge triggered action would be performed only when it goes from 0 to 1

But in a keyboard if you press a key it would give a string of that character or number till you don't stop pressing the key. ( for e.g. 666666....) this is level triggered . We perform the particular action till the signal is available . That is if a signal is active high task will be performed till its active high . That is only when it is 1 .

 
 
 
 
 
 

相关文章:

  • 2021-10-16
  • 2021-10-04
  • 2021-09-14
  • 2021-10-12
  • 2021-11-11
  • 2021-10-09
  • 2022-12-23
  • 2021-10-27
猜你喜欢
  • 2022-02-14
  • 2022-12-23
  • 2021-08-24
  • 2022-01-13
  • 2021-10-01
  • 2022-01-10
  • 2022-01-29
相关资源
相似解决方案