I’m trying to implement an BufferedInputStream that fills the buffer in some background threads.
I’m pretty close but I’m facing some difficulties.
I set up n buffers, and n ThreadPoolJobs, each job x is responsible for filling the buffer x.
Sometimes I get an exception on ThreadPool.addjob
Is it forbidden to add twice the same job on a threadpool ?