Tech companies have announced layoffs, hiring freezes and cost cutting efforts amid fears of an economic downturn.