context switch?

terence_at_ms71.url.com.tw
Date: 07/14/04

  • Next message: Steve Houle: "Matrox G550 with DualHead under Fedora Core 2"
    Date: 14 Jul 2004 02:47:37 -0700
    
    

    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
    process.

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

       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
    process?

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


  • Next message: Steve Houle: "Matrox G550 with DualHead under Fedora Core 2"