bbeaupain / nio_uring

High performance I/O library for Java using io_uring under the hood
MIT License
146 stars 8 forks source link

External thread support #2

Open bbeaupain opened 2 years ago

bbeaupain commented 2 years ago

We need an efficient (if possible) and safe way to queue I/O operations from external threads. Possibly just a simple synchronization mechanism and a ring wakeup call will be enough.

siy commented 8 months ago

The simplest approach might be to use a queue which supports multiple-producers-single-consumer (MPSC) access. Since performance and zero allocation are an absolute requirement, I'd suggest JCTools MpscArrayQueue.