In: Computer Science
Write a 500-word paper on what is inter processor communication in parallel machines. Further, explain shared memory conflicts in inter processor communication. And finally discuss how it can be solved—specifically with Shared Memory and MPI (message-passing-interface).
The interprocess communication (IPC) is used in one or more
systems or applications to share data between several
threads.
The Processes can run on single or multiple networked
computers.
IT is a series of programming interfaces that enable a programmer
to organize tasks between various software processes that can
operate concurrently in an operating system.
The shared memory is the fastest interprocess communication
mechanism.
The operating system maps a memory segment in the address space of
several processes, so that several processes can read and write in
that memory segment without calling operating system
functions.
IT allows one or more processes to communicate via memory that
appears in all of their virtual address spaces.
The pages of the virtual memory is referenced by page table entries
in each of the sharing processes' page tables
It does not have to be at the same address in all of the processes'
virtual memory. As with all System V IPC objects,
access to shared memory areas is controlled via keys and access
rights checking. Once the memory is being shared,
there are no checks on how the processes are using it.
The conflicts are there when two or more processes requires the
same memory slot or same resources to get their execution done
.
Processes may interact with both: Shared Memory Message
passing.
In message passsing the process communicate with each other by
establishing a connection between them and they communicate the
information about the priority which in turn allows the process to
release any resources for a higher priority process.