The US has the WARN Act which requires companies to give 2 months notice of large layoffs. There are a number of loopholes however and the company doesn't need to give any specific employee 2 months advance notice, so the good employees start their job hunt while everyone else hopes to survive the culling.