thread module usage