Use dedicated variables to control shutdown of parallel threads like keypress and...