The fastest way to stop a thread/task on arduino

sdfewa wrote on Sunday, January 21, 2018:

Thanks, Richard. Very informative and good comparison between rtoses and non-rtoses in general.
Yes, I will make sure it is safe even in the worst scenario when the emergency button is pushed.

In order to benefit more people, I put a question about different time solution in a seperate question:
https://sourceforge.net/p/freertos/discussion/382005/thread/2a9aeb2c/