Multitasking does work for offline but it simulates two random researches going at the same time, not the researches currently running.
Compounding knowledge will actually automatically increase while offline (for random research) so no need to set up the stacks before turning the game off.