20130718-调试设备通信常遇见的两种错误——Overrun和Underrun

来源:互联网 发布:万能钥匙软件下载 编辑:程序博客网 时间:2024/06/09 17:37

http://wen.dingyuan.blog.163.com/blog/static/40452473201021923046512/

 

Underrun(underflow)

      In computing, buffer underrun or buffer underflow is a state occurring when a buffer used to communicate between two devices or processes is fed with data at a lower speed than the data is being read from it. This requires the program or device reading from the buffer to pause its processing while the buffer refills. This can cause undesired and sometimes serious side effects, since the data being buffered is generally not suited to stop-start access of this kind.

 

Overrun(overflow)

      A buffer overflow occurs when data written to a buffer, due to insufficient bounds checking, corrupts data values in memory addresses adjacent to the allocated buffer.

 

原创粉丝点击