add thread_basic example.