Actor Pattern in C