RT/NRT thread communication and init/shutdown