Qualcomm Interview Question


Country: India
Interview Type: In-Person




Comment hidden because of low score. Click to expand.
6
of 6 vote

two processes can not share function pointers.
if you want to use functions in two processes make library for that functions
and use that library in your processes

- super star rajini kanth December 29, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
1
of 1 vote

Yes, two process can not share the function pointer. However, they can the simple variable using shared memory.

We can use the library and define the function and exposed them to both the process.

- Maneesh Jain January 24, 2013 | Flag
Comment hidden because of low score. Click to expand.
1
of 1 vote

we can do it by using RPC ipc mechanisam... we can cal functions in other proceses

- krish April 07, 2014 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

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.

- Amit Khatri September 07, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
-1
of 1 vote

Even then function pointers are lying in process A's address space which process B is trying to access or vice-versa. This will normally result in segmentation fault in user-space.

- PJ November 04, 2013 | Flag
Comment hidden because of low score. Click to expand.
-2
of 4 vote

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

- tranquil November 25, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

One more is socke, but its used for IPC in two different systems

- Dipak December 06, 2012 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

Mapped memory is also similar to shared memory, except that it is associated with a file in the filesystem.

- jainrajrahul December 09, 2012 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

Is semaphore is a synchronization technique in IPC mechanism ? or Is semaphore is one type of IPC ?

- rakesh October 03, 2015 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

Is semaphore is synchronization technique in IPC mechanism or should I conisder it as semaphore it self as one of the IPC technique?

- sriram.k2700 October 03, 2015 | Flag


Add a Comment
Name:

Writing Code? Surround your code with {{{ and }}} to preserve whitespace.

Books

is a comprehensive book on getting a job at a top tech company, while focuses on dev interviews and does this for PMs.

Learn More

Videos

CareerCup's interview videos give you a real-life look at technical interviews. In these unscripted videos, watch how other candidates handle tough questions and how the interviewer thinks about their performance.

Learn More

Resume Review

Most engineers make critical mistakes on their resumes -- we can fix your resume with our custom resume review service. And, we use fellow engineers as our resume reviewers, so you can be sure that we "get" what you're saying.

Learn More

Mock Interviews

Our Mock Interviews will be conducted "in character" just like a real interview, and can focus on whatever topics you want. All our interviewers have worked for Microsoft, Google or Amazon, you know you'll get a true-to-life experience.

Learn More