Qualcomm Interview Question
Country: India
Interview Type: In-Person
Both process has a different virtual address space. If you send address of a function from process A to process B, in process B address from A does not make any sense. The memory mapping in process A will be different from that in process B. If you want to do so u need to know the memory mapping of process A and according to that you need to deference the memory in process B.
There are 4 types of IPC's namely
1. Pipes
2. Shared Memory
3. Message Queues
4. Semaphores
Function pointers are variables defined in a process and can be used by any threads forked by the process hence they use Shared Memory
Mapped memory is also similar to shared memory, except that it is associated with a file in the filesystem.
Is semaphore is a synchronization technique in IPC mechanism ? or Is semaphore is one type of IPC ?
two processes can not share function pointers.
- super star rajini kanth December 29, 2012if you want to use functions in two processes make library for that functions
and use that library in your processes