Low-latency pause in JDK
Viktor Klang via Concurrency-interest <[email protected]>
| Newsgroups | gmane.comp.java.jsr.166-concurrency |
|---|---|
| Message-ID | <CANPzfU9Msa3LkmPEUgr3QPULZkXqxFvcAgeYucA9L9-o=kM7xQ@mail.gmail.com> |
Hey, 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 ;) -- Cheers, √ _______________________________________________ Concurrency-interest mailing list [email protected] http://cs.oswego.edu/mailman/listinfo/concurrency-interest