How to move "compute" function in second thread? Pls give me simple example with some details how it works. I have tried to search some code examples on the web, b