threads_exit should be volatile being polled in a loop on a sim thread and be written...