Patent ID: 8869137

Claim:
An information processing apparatus comprising: a display device; a storage device configured to store a program and a subsequent processing code; and a processor configured to execute the program to display a graphical user interface (GUI) screen on the display device in accordance with the program and to write program termination information in the storage device when the program is terminated, wherein the program includes a main program and N subsequent programs, where N represents a natural number greater than one, wherein the processor is configured to (a) terminate the main program after displaying a first GUI screen on the display device in a first thread in a process of the main program and executing the subsequent processing code in a second thread in the process of the main program, (b) display a second GUI screen on the display device in accordance with a first subsequent program that is specified by the subsequent processing code on the basis of the program termination information and is executed after the main program, and (c) sequentially display third and subsequent GUI screens on the display device, in accordance with N−1 subsequent programs subsequent to the second subsequent program that is executed after the first subsequent program, until a termination condition is satisfied, wherein the process of the main program continues until the subsequent processing code ends even when the first GUI screen of the main program is closed, and the subsequent processing code continues for operation asynchronously with the first GUI screen display, and wherein the termination condition includes termination of a predetermined subsequent program and the processor is configured to terminate the subsequent processing code when the termination condition is determined to be satisfied in accordance with the subsequent processing code.