private void tellThreadsToStop() {
// ConcurrentHashMap does not need protecting
for (Entry<JMeterThread, Thread> entry : allThreads.entrySet()) {
JMeterThread item = entry.getKey();
item.stop(); // set stop flag
item.interrupt(); // interrupt sampler if possible
Thread t = entry.getValue();
if (t != null ) { // Bug 49734
t.interrupt(); // also interrupt JVM thread
}
}