context switch?

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

  • Next message: mjt: "Re: context switch?"
    Date: 14 Jul 2004 06:25:26 -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: mjt: "Re: context switch?"