function CpuThread