does the underlying implementation (not public) of DatagramSocketImp's send receive method busy wait
Alan Bateman
Alan.Bateman at oracle.com
Tue Dec 19 10:53:26 UTC 2017
On 18/12/2017 21:24, Paul Marks wrote:
>
>
> So if the kernel decides to block, the thread will be suspended
> (consuming no CPU) until it's done.
>
> However, the UDP protocol has no concept of flow control, so blasting
> out packets without any rate limit or acknowledgement mechanism is not
> a good idea. If you saturate a link in the network, sendto() is not
> obligated to block, or provide any feedback whatsoever.
That's right and you'll find that most kernels will just discard the
packet so the send never blocks.
-Alan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/net-dev/attachments/20171219/fe7b4087/attachment.html>
More information about the net-dev
mailing list