Explain the trade-offs between using different inter-process communication (IPC) mechanisms in a real-time system.