Depends a bit on your country. My CEO can fire me but there is a longer notice period depending on how long I have been with the company.
- 2 years: 1 month
- 5 years: 2 months
- 8 years: 3 months
...
- 20 years: 7 months
Germany btw.