Intel Plans to Lay Off Thousands of Employees As the Chipmaker Looks to Trim Costs