C demo of two IPC methods