Pregunta de entrevista de Arcesium

How multitasking occurs in operating system?