sm_server_thread
ret_val = pthread_create(&tid, &attr, sm_server_thread,
static void *sm_server_thread(void *arg);