| ??? 12/27/07 13:13 Read: times |
#148786 - single, double and ring buffer app dependent Responding to: ???'s previous message |
If there is a firm protocol, especially one with acknowledge, a single/double buffer is often the better choice.
However, when there is only 'bytes' a ring seems the logical choice. Anyhow, the point is that by using interrupt and buffer you gain a lot of flexibility as opposed to polling that usually end up biting you in a place that will make it hurt when you sit down. I can not count the number of 'working' setups using polling I have seen that fell apart because of a change that "had no effect on I/O" Erik |



