Multitasking of computer programs