Thread processor