title: Run a new thread and don't wait this thread finish
body: <p>I am new to the Threading, so if please give me an advice for my case.</p>
  
  <p>I would like create a new thread to do something and I don't care this thread can do complete or not.</p>
  
  <p>I intend to use ExecutorCompletionService to do my job but this class is not suitable for me. It must call take or poll to drain a queue to avoid memory leak. So, this means I must wait until the thread complete. I read this from this <a href="https://stackoverflow.com/questions/7758020/difference-between-executor-and-executorcompletionservice-in-java">question</a></p>
  
  <p>This is the current code</p>
  
  <pre><code>ExecutorService executor = Executors.newCachedThreadPool();
  
  CompletionService&lt;Entity&gt; completion = new ExecutorCompletionService&lt;&gt;(executor);
  
  DoSomeThingClass doSomething = getInstance();
  
  completion.submit(doSomething);
  
  executor.shutdown();
  
  // Continue to do other job and I don't care whenever doSomeThing is complete.
  // However when doSomeThing finish, I don't need to do anything to avoid memory leak
  </code></pre>
  
  <p>For that reason, please give me an approach for my case and some skeleton code for example.</p>
  
  <p>Thank you so much </p>