Answer:
Both direct communication(send(P,message),receive(id,message)) and indiect communication(send(A,message),receive(A,message)) can be used in the interprocess communication. Related UNIX processes(system calls):
simplest communication: using pipes
direct communication related system calls: msgget(), msgctl(),msgsnd() and msgrcv();
indirect commnunication related system calls: shmget();shmat();shmdt();shmctl();
Semorphore related: semget();semctl();semop() *********************************************************************
Explanation: