An electronic device comprising: a non-volatile memory configured to include a main memory region and a file system region; and a processor configured to perform computing and perform checkpointing on the main memory region and the file system region depending on a predetermined condition, wherein the main memory region includes a checkpoint table to which information on a page of the main memory region in which data has changed is written, wherein the processor initializes the checkpoint table, sets an attribute of all pages of the main memory region to read-only, wherein the processor, in the case in which a data update on the first page is requested, writes information on a first page of the main memory region to the checkpoint table, allocates in the main memory region a second page copied from the first page for the purpose of roll-back, and writes information on the second page to the checkpoint table, and changes an attribute of the first page into write and maintains the changed attribute up to the next checkpoint section, wherein the processor removes the second page, initializes the checkpoint table, and sets the attribute of the first page changed into the write to read-only at the time of performing a checkpointing operation of the main memory wherein the file system region includes a memory buffer and a storage for files of a file system, the memory buffer copies data blocks of the files and updates the copied data block to new version data and metadata related to changed data in the main memory region during the operation of the system when data of the main memory region are changed, and applies the updated data block including the new version data and the updated metadata to the files at the time of performing a checkpointing operation of file system region, and wherein the checkpointing operation of the main memory region is performed before the checkpointing operation of the file system region, and wherein the processor deletes and rolls back data in the main memory region by updating data of the second page to data of the first page in the main memory region, at the time of occurrence of an error at the time of performing the computing or the checkpointing operation of the main memory region, and wherein the processor discards updated data in the memory buffer in the file system region accumulated during a time in which the computing is performed in the main memory region. a non-volatile memory configured to include a main memory region and a file system region; and a processor configured to perform computing and perform checkpointing on the main memory region and the file system region depending on a predetermined condition, wherein the main memory region includes a checkpoint table to which information on a page of the main memory region in which data has changed is written, wherein the processor initializes the checkpoint table, sets an attribute of all pages of the main memory region to read-only, wherein the processor, in the case in which a data update on the first page is requested, writes information on a first page of the main memory region to the checkpoint table, allocates in the main memory region a second page copied from the first page for the purpose of roll-back, and writes information on the second page to the checkpoint table, and changes an attribute of the first page into write and maintains the changed attribute up to the next checkpoint section, wherein the processor removes the second page, initializes the checkpoint table, and sets the attribute of the first page changed into the write to read-only at the time of performing a checkpointing operation of the main memory wherein the file system region includes a memory buffer and a storage for files of a file system, the memory buffer copies data blocks of the files and updates the copied data block to new version data and metadata related to changed data in the main memory region during the operation of the system when data of the main memory region are changed, and applies the updated data block including the new version data and the updated metadata to the files at the time of performing a checkpointing operation of file system region, and wherein the checkpointing operation of the main memory region is performed before the checkpointing operation of the file system region, and wherein the processor deletes and rolls back data in the main memory region by updating data of the second page to data of the first page in the main memory region, at the time of occurrence of an error at the time of performing the computing or the checkpointing operation of the main memory region, and wherein the processor discards updated data in the memory buffer in the file system region accumulated during a time in which the computing is performed in the main memory region.