The processes , by design and by definition, are isolated from each other. They have a separate address space.
The operating system supports processes that are shared and allocate the resources they need so that they are less likely to interfere with each other ...
They can, of course, communicate, but only if they choose through interprocess communication .
However, threads , sometimes known as light processes, share their address space and can read each other's data structures.
Not sure what you meant by
call other process functions
The f() function can be compiled into the executable code of several processes. Process A and process B can call f() independently in their context.
Otherwise, process A can โexchangeโ process B in order to perform some action, which, for example, can be implemented in function g() in B. B can execute it in its context and โcommunicateโ the result back to A.
Arun
source share