Barclays interview question

How do operating systems work?