0
This is a question that arose to me when I was trying to solve a problem in 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
causing when the prog1 fires an event the prog2 receives this event and gestiona.
Example:
prog1 executes a calling establishment
prog2 executes OnEstabelecimentoDeChamada
Since they are being executed asynchronously and at this point there is a communication between the two and as argument of that call the prog1 passes an object to prog2. The question is, how does the stack run of both programs? What happens if another event is called in prog1 while prog2 is still running the OnEstabelecimentoDeChamada
?
I tried to be as clear as possible, I would like to know how the calls properly look in the execution stack