Suspending and resuming the program execution