title: What happens to Thread and Task when the Task running in the Thread is finished?
body: <p>I am new to JavaFX and multithreading in general, so based on assylias answer to this post 
  <a href="https://stackoverflow.com/questions/14674274/multithreading-in-javafx-hangs-the-ui?answertab=votes#tab-top">Multithreading in JavaFX hangs the UI</a></p>
  
  <p>i have created some Tasks running in Threads to avoid freezing the main UI thread. </p>
  
  <p><strong>The question:</strong></p>
  
  <p>I wonder what happens to the Thread and the Task when the Task has finished its job. I might also add that i am creating both the Thread and the Task in a method which is called when i press a button. So neither of them are instantiated or initialized globally. </p>
  
  <p>I also wonder if there is a way to monitor threads and resource usage when compiling my code in IntelliJ. </p>
  
  <p>Hope i can get some clarification on this :)</p>