Regarding handling of threads