[concurrency-interest] Low-latency pause in JDK
nigro.fra at gmail.com
Fri Oct 25 06:26:52 EDT 2019
I haven't seen anything yet if not on some initial implementations of the
fork join pool, lately removed. If you need something that is more aware of
the OS behaviour eg timeslack_ns probably is something you need to
implement by yourself afaik :( (see
Il ven 25 ott 2019, 19:14 Viktor Klang via Concurrency-interest <
concurrency-interest at cs.oswego.edu> ha scritto:
> Is there any jdk-builtin Java8+ method which tries to be clever about
> low-nanos/micros parking?
> I'm currently considering LockSupport.parkNanos but want to avoid having
> the Thread parked when parking + wake-up latency is more likely to be much
> greater than the requested time.
> I.e. some combination of onSpinWait + some non-cache-polluting computation
> + yielding + actual parking. I'd like to avoid having to custom-roll it,
> hence the question for prior art ;)
> Concurrency-interest mailing list
> Concurrency-interest at cs.oswego.edu
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Concurrency-interest