Hello Pkokoshnikov
Thank you for your comment. It is so common and easy to check belief that I added the answer to the end of the post.
You can find more information in any concurrency tutorial. Then look at Executors API, but it might be even more difficult to grasp.