prediction thread