Do you recreate the ThreadPool often?
Yes.
Now I found the solution: Not set the threadpool variable to null, but run the method shutdown().
It work's. After 2 minutes one threadpool in a object will now be deleted by shutdown() and another one will be started (= currently is always just one threadpool active). Is this okay or should I avoid start a threadpool so often?
Because: My threadpool is in an object
gameround, which exists always one time. After some playing, this object will be delete and a new object
gameround is created.