Riverbed Interview Question
Software Engineer / DevelopersThe pointer to the variable in stack is nothing but an address. Since the threads share the same address space, the 2nd thread should be able to access the address that happens to fall in stack segment of 1st thread.
1. U cannot access variables in stack
- Anonymous June 23, 20102. Processes can share memory. Shared Memory is an efficeint means of passing data between programs. One program will create a memory portion which other processes (if permitted) can access.