I am new to JavaFX and multithreading in general, so based on assylias answer to this post Multithreading in JavaFX hangs the UI
i have created some Tasks running in Threads to avoid freezing the main UI thread.
The question:
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.
I also wonder if there is a way to monitor threads and resource usage when compiling my code in IntelliJ.
Hope i can get some clarification on this :)