start threads with a boolean flag