Best way to periodically retrieve results from a thread : <p>I am new to threading, but I need to use threads in order to make my javafx application work. My problem is that I need to perform a lot of calculations in my program, and update the UI periodically in between. I am aware that making calculations in the javafx thread is blocking the UI update, so I need to move that work to another thread.</p>

<p>What I need to know, since I have never worked with threads before is, what is the best way to periodically start that thread, do part of the calculations, and send the results back to the javafx thread. </p>
