common thread class