c - Executing a Stopped Process in XV6 -


i wrote 2 new system calls , add them xv6 os kernel. using 1 system call can save process state , using other 1 can reload previous state , continue. problem in reloading section.


is enough reload context of process ? (i mean struct context contains cpu register)

no.

the process may have open files , pipes in proc->ofile, need save/load.

note time re-load process, parent may no longer exist.
you'll want make sure process isn't floating around without real parent, or you'll in fun bugs.


Comments

Popular posts from this blog

c++ - llvm function pass ReplaceInstWithInst malloc -

Cross-Compiling Linux Kernel for Raspberry Pi - ${CCPREFIX}gcc -v does not work -

java.lang.NoClassDefFoundError When Creating New Android Project -