This is a question that came up when I was trying to solve a problem on a client, the problem turned out to be something else but the doubt continued.
Imagine a situation where there are two programs, prog1 and prog2 , where a dll
is used, causing prog1 to fire an event prog2 receives this event and manages it.
Example:
prog1 runs a calling establishment
prog2 runs OnEstabelecimentoDeChamada
Since they are running asynchronously and at this point there is a communication between the two and as an argument of that call, the prog1 passes an object to prog2 . The question is, how does the stack stack run from both programs? What happens if another event is called in prog1 while prog2 is still running OnEstabelecimentoDeChamada
?
I tried to be as clear as possible, I would like to know how the calls are properly in the execution stack