Hi all:

I have a following question can anyone please help me.

When CPU context switches between processes, the system must save
the state of the old process and load the saved state for the new

(1)So, during context switch, which contexts of the process must be

The operating system maintains a data structure known as a process
control block. In Linux this is a struct task_struct.

(2)What method could I use if I am trying to copy a task_struct of the

Would anyone point me to any helpful hint ?
Thanks in advance