You have X agent in each simulation, right? You have Y simulations you run.Do you have Y threads running or do you have X*Y threads running?

Yes, I have X agents in each simulation and Y simulations, and each simulation has a thread for each agent so X threads in one simulation. But I want to kill the X threads and corresponding display of first simulation before starting a new simulation so its a sequential process, I wanted to know if there's a way to kill the X threads and corresponding display for it.