How to kill running thread manually

Thanks in advance.

You must NEVER kill running threads by force. To do so leaves your program in an undefined state.

(That’s not JUCE-specific or even C+±specific advice, it applies to any compiled program)