If your manager or someone else is asking you to multitask and you feel it is counter-productive or unsafe, try explaining your concerns.
Start longer or more involved tasks first. Fill in the gaps with shorter, well-defined, or self-contained tasks. Think about whether there are resources to manage and distribute, other than your time and attention. If you are baking multiple dishes, each one will need time in the oven. Can you put them all in together, or must they go in some sequence?
In terms of tasks, alternating rapidly may mean figuring out ways to switch between tasks cleanly. Perhaps that means identifying or even building in times when a task does not need your direct attention (such as when laundry is in the washing machine or a casserole is in the oven). That may also mean setting a timer or alarm, or making a mental or written note to remind yourself to pay attention to a task again when the time comes.
When you do pause, pause consciously and do what you need to, to remind yourself to resume. When possible, pause at natural pause points. This may be the end of a page, or the beginning of a waiting cycle.