harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Krishna R" <sith.l...@gmail.com>
Subject [classlib][luni] readByte polls instead of blocking?
Date Wed, 02 Apr 2008 22:32:45 GMT
Hi.

I was under the assumption that readByte() blocked in Java. But we found
that readByte internally calls pollSelectRead () in socket.c which polls
with 100ms timeout.  Is there any reason to do this? We do see a not poll
option in the code but it is not turned on by default.  This is on Linux
BTW. I wonder if there was a reasoning behind this i am overlooking.

Thanks,
Krish

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message