title: Creating multiple threads for writing files to Disk, Java
body: <p>I have an piece of code which writes an object to disk as an when the object is put into the LinkedBlockingQueue.</p>
  
  <p>As of now, this is Single threaded. I need to make it multi threaded as the contents are being written to the different files on disk.and therefore, there is no harm in writing them independently.</p>
  
  <p>I am not sure if i can use ThreadPool here as i dont know when the object will be placed on the queue!! now if i decide to have a fixedThreadPool of 5 threads, how do i distribute it among multiple objects?</p>
  
  <p>Any suggestions are highly appreciated.
  here is my existing code. I want to Spawn a new thread as and when i get a new object in the queue.</p>