The Physics of Multitasking