use thread

Dependents:   mbed_thread

Fork of mbed-rtos by mbed official