Boost logo

Boost Users :

Subject: Re: [Boost-users] [asio] async udp socket latency
From: Andrew Hundt (athundt_at_[hidden])
Date: 2015-07-02 18:18:34

On Thu, Jul 2, 2015 at 5:00 PM, Jonathan Franklin <
franklin.jonathan_at_[hidden]> wrote:

> On Thu, Jul 2, 2015 at 12:12 AM, Andrew Hundt <athundt_at_[hidden]> wrote:
>> Does anyone have insight into why this latency issue may be occurring in
>> the Async UDP version? Thanks.
> Without taking the time to look at your code or google OSX...
> When a thread yields on this platform, how long before it runs again? It
> is 10ms on a number of platforms, which may cause you grief if you're
> trying to do something (asynchronously) more frequently than that, i.e. 5
> ms.

Very interesting! Thread priority could explain it since the async calls
yield when they are done and the sync would be returned by the underlying
system call at the right time. Thanks!

Andrew Hundt

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at