48.7k views
4 votes
What happens if the addressed device does not respond due to a malfunction during a read operation?

User BenM
by
8.4k points

1 Answer

5 votes
If the read operation is implemented synchronously (this is the classic case), it will block and eventually time-out. The calling program should deal with the returned error.

If the read operation is asynchronous (as it will be in modern programming languages), the underlying library might provide an error callback, or you'll have to schedule a timeout task yourself.
User McLovin
by
7.9k points

No related questions found