1) Third argument to pthread_setcanceltype can't be NULL. 2) First argument to pthread_getschedparam must be valid thread id. Cosmetic changes to output of show command.