of computation • Behavior - react on messages it receives • State - shielded from the rest of the world, no need for synchronization • Communication - interact with other actors exclusively via messages
of computation • Behavior - react on messages it receives • State - shielded from the rest of the world, no need for synchronization • Communication - interact with other actors exclusively via messages • “One actor is no actor” - they come in systems
count = 0; @Override public void onReceive(Object message) { count += 1; System.out.println( "Hello for the " + count + " time!" ); } } One at a time Thread-safe