Linked actor death during message handler execution

16 views
Skip to first unread message

Alexander Gagarin

unread,
Nov 21, 2019, 2:44:30 PM11/21/19
to actor-framework
Hi!

A short question.

Let's consider two spawned linked actors (via `linked_to()`).
What will happen if in the middle of long processing A's handler actor B sure l dies? Will current execution flow of A be terminated (like thread terminating or smth similar) and exit message immediately send? Or current handler never gets interrupted?

Dominik Charousset

unread,
Nov 21, 2019, 2:47:29 PM11/21/19
to actor-f...@googlegroups.com
> Let's consider two spawned linked actors (via `linked_to()`).
> What will happen if in the middle of long processing A's handler actor B sure l dies? Will current execution flow of A be terminated (like thread terminating or smth similar) and exit message immediately send? Or current handler never gets interrupted?

The latter. There is no context-switching or magic interrupts. Actors simply process messages, one by one. One of these messages eventually is the exit message.

Dominik

Alexander Gagarin

unread,
Nov 26, 2019, 1:05:54 AM11/26/19
to actor-framework


The latter. There is no context-switching or magic interrupts. Actors simply process messages, one by one. One of these messages eventually is the exit message.
 
Thanks, Dominik!
That was the answer I expected to hear =)
 
Reply all
Reply to author
Forward
0 new messages