IMPORTANT: IPC (Shared Memory)

Hi all friends,
Today around the my current project i understood which it's better to split my app in two part MASTER and SLAVE or Logic and UI
I want this two part communicate using shared memory,
but i have access to write/read position in shared memory.
thanks;