Programmer’s Model: Code Segment: Code which processor Understands Data Segment: It contains global var. It goes from low to high memory address Stack Segment: It contains call frames, local variable etc. for that function call. ==== Then we discussed about topic which needs to get for Homework 1. Saving state of process. Basically we have to create a checkpoint for any point of time for a process and then after creating that process we have to restore it. Basic System call needed: 1) open 2) close 3) read 4) write 5) memcpy 6) mmap 7) setContext 8) getContext Please check man pages for all above system calls. Example: man 2 open How to store state of process? After running some xyz process get process_id for that process Using Ps aux | grep Get the memory map file generated for that particular process. Get start address and end address for different segments from that file. Get the permission for respective segments. You have to capture all required information i.e. all information from that file. It must have information about code segment, data segment, stack segment. It all contains details about compile time library used (libc). You have to copy that also. You can store this metadata into your own struct. Later dump that struct into checkpoint file that you are creating.