Porting of Message Queues

I want to develop a application which will also have backup for it. As the application will consists of several processes.IF the primary application crashes, all the processes will be port to back up application so the working won’t be halt.
Now , If I want to use POSIX message queue(no UDP , TCP and Qnet) for IPC ie local communication between processes to overcome CPU overhead.
Can I use them for requirement . How will I port message queues also if the primary application crashes or stop working???

Hm, sounds tricky. I recommend looking at the documentation for the HAM (High Availability Manager) (or HAt, High Availability Toolkit). I believe that it has an API that helps you to do what you need. Basically you establish connection between two processes over HAM. Not sure if it works with message queues, too, though.