process replication - Unix

This is a discussion on process replication - Unix ; i want to replicate process address space and copy it into other process,so that if i kill one process the other process should have the exact running state of the killed process. The two processes are not running in the ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: process replication

  1. process replication

    i want to replicate process address space and copy it into other
    process,so that if i kill one process the other process
    should have the exact running state of the killed process. The two
    processes are not running in the same machine, they are in two
    diffrent machines or two cpus in the same machine, so this process
    sate information will be communicated to the other through ipc or tcp
    communication channels. At first i thought i will take backup of the
    data structures one by one, but this can go really complex and wierd
    and error prone. So i am thinking of mapping the process address space
    and forming them in to chunks of packets and communicating to the
    other process.what ways are there to do this.Does mmap() helps?

    thanks
    sinbad

  2. Re: process replication

    On Apr 7, 9:39 pm, sinbad wrote:

    > i want to replicate process address space and copy it into other
    > process,so that if i kill one process the other process
    > should have the exact running state of the killed process. The two
    > processes are not running in the same machine, they are in two
    > diffrent machines or two cpus in the same machine, so this process
    > sate information will be communicated to the other through ipc or tcp
    > communication channels. At first i thought i will take backup of the
    > data structures one by one, but this can go really complex and wierd
    > and error prone. So i am thinking of mapping the process address space
    > and forming them in to chunks of packets and communicating to the
    > other process.what ways are there to do this.Does mmap() helps?


    Google "process checkpoint". Good luck, this is an extremely
    complicated thing to do. What should happen to things the process is
    accessing that cannot be replicated like file handles and network
    connections?

    DS

+ Reply to Thread