Quantcast
Channel: Reading from InputStream - Stack Overflow
Viewing all articles
Browse latest Browse all 2

Answer by Mat for Reading from InputStream

$
0
0

A blocking read does not consume CPU. The OS will put the calling thread/process to sleep.

That loop is fine.


Viewing all articles
Browse latest Browse all 2

Trending Articles