1. creating and running a thread; 2. getting and setting a thread information