ArticleslgStudy

computer science

Actor model theory

Actor model theory is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Actor model theory rather than just read about it. In short: In theoretical computer science, Actor model theory concerns theoretical issues for the Actor model. Actors are the primitives that form the basis of the Actor model of concurrent digital computation.

Key takeaways

  • Actor model theory belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Actor model theory to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Actor model theory from memory before moving on to harder problems.

Reference excerpt

In theoretical computer science, Actor model theory concerns theoretical issues for the Actor model. Actors are the primitives that form the basis of the Actor model of concurrent digital computation. In response to a message that it receives, an Actor can make local decisions, create more Actors, send more messages, and designate how to respond to the next message received. Actor model theory incorporates theories of the events and structures of Actor computations, their proof theory, and denotational models.

Events and their orderings From the definition of an Actor, it can be seen that numerous events take place: local decisions, creating Actors, sending messages, receiving messages, and designating how to respond to the next message received. However, this article focuses on just those events that are the arrival of a message sent to an Actor. This article reports on the results published in Hewitt [2006].

Law of Countability: There are at most countably many events.

Activation ordering The activation ordering (-≈→) is a fundamental ordering that models one event activating another (there must be energy flow in the message passing from an event to an event which it activates).

Because of the transmission of energy, the activation ordering is relativistically invariant; that is, for all events e1.e2, if e1 -≈→ e2, then the time of e1 precedes the time of e2 in the relativistic frames of reference of all observers. Law of Strict Causality for the Activation Ordering: For no event does e -≈→ e. Law of Finite Predecession in the Activation Ordering: For all events e1 the set {e|e -≈→ e1} is finite.

Arrival orderings The arrival ordering of an Actor x ( -x→ ) models the (total) ordering of events in which a message arrives at x. Arrival ordering is determined by arbitration in processing messages (often making use of a digital circuit called an arbiter). The arrival events of an Actor are on its world line. The arrival ordering means that the Actor model inherently has indeterminacy (see Indeterminacy in concurrent computation).

Because all of the events of the arrival ordering of an actor x happen on the world line of x, the arrival ordering of an actor is relativistically invariant. I.e., for all actors x and events e1.e2, if e1 -x→ e2, then the time of e1 precedes the time of e2 in the relativistic frames of reference of all observers. Law of Finite Predecession in Arrival Orderings: For all events e1 and Actors x the set {e|e -x→ e1} is finite.

Combined ordering The combined ordering (denoted by →) is defined to be the transitive closure of the activation ordering and the arrival orderings of all Actors.

The combined ordering is relativistically invariant because it is the transitive closure of relativistically invariant orderings. I.e., for all events e1.e2, if e1→e2. then the time of e1 precedes the time of e2 in the relativistic frames of reference of all observers. Law of Strict Causality for the Combined Ordering: For no event does e→e. The combined ordering is obviously transitive by definition. In [Baker and Hewitt 197?], it was conjectured that the above laws might entail the following law:

Law of Finite Chains Between Events in the Combined Ordering: There are no infinite chains (i.e., linearly ordered sets) of events between two events in the combined ordering →.

Independence of the Law of Finite Chains Between Events in the Combined Ordering However, [Clinger 1981] surprisingly proved that the Law of Finite Chains Between Events in the Combined Ordering is independent of the previous laws, i.e., Theorem. The Law of Finite Chains Between Events in the Combined Ordering does not follow from the previously stated laws. Proof. It is sufficient to show that there is an Actor computation that satisfies the previously stated laws but violates the Law of Finite Chains Between Events in the Combined Ordering.

Consider a computation which begins when an actor Initial is sent a Start message causing it to take the following actions Create a new actor Greeter1 which is sent the message SayHelloTo with the address of Greeter1 Send Initial the message Again with the address of Greeter1 Thereafter the behavior of Initial is as follows on receipt of an Again message with address Greeteri (which we will call the event Againi): Create a new actor Greeteri+1 which is sent the message SayHelloTo with address Greeteri Send Initial the message Again with the address of Greeteri+1 Obviously the computation of Initial sending itself Again messages never terminates. The behavior of each Actor Greeteri is as follows: When it receives a message SayHelloTo with address Greeteri-1 (which we will call the event SayHelloToi), it sends a Hello message to Greeteri-1 When it receives a Hello message (which we will call the event Helloi), it does nothing. Now it is possible that Helloi -Greeteri→ SayHelloToi every time and therefore Helloi→SayHelloToi. Also Againi -≈→ Againi+1 every time and therefore Againi → Againi+1. Furthermore all of the laws stated before the Law of Strict Causality for the Combined Ordering are satisfied. However, there may be an infinite number of events in the combined ordering between Again1 and SayHelloTo1 as follows: Again1→...→Againi→...∞...→Helloi→SayHelloToi→...→Hello1→SayHelloTo1 However, we know from physics that infinite energy cannot be expended along a finite trajectory. Therefore, since the Actor model is based on physics, the Law of Finite Chains Between Events in the Combined Ordering was taken as an axiom of the Actor model.

Law of Discreteness The Law of Finite Chains Between Events in the Combined Ordering is closely related to the following law:

Law of Discreteness: For all events e1 and e2, the set {e|e1→e→e2} is finite. In fact the previous two laws have been shown to be equivalent:

Theorem [Clinger 1981]. The Law of Discreteness is equivalent to the Law of Finite Chains Between Events in the Combined Ordering (without using the axiom of choice.) The law of discreteness rules out Zeno machines and is related to results on Petri nets [Best et al. 1984, 1987]. The Law of Discreteness implies the property of unbounded nondeterminism. The combined ordering is used by [Clinger 1981] in the construction of a denotational model of Actors (see denotational semantics).

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Actor model theory

Start with the simplest possible case. Write down what Actor model theory claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Actor model theory before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Actor model theory ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Actor model theory

In research
Actor model theory appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Actor model theory in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Actor model theory is common in secondary-school and first-year university syllabi. It links to neighbouring topics Actor model (computer science), Denotational semantics, Mathematics of computing, so understanding it makes those chapters shorter.
In everyday life
Look for Actor model theory outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Actor model theory” →

How to study Actor model theory in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Actor model theory means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Actor model theory out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Actor model theory in simple terms?

In theoretical computer science, Actor model theory concerns theoretical issues for the Actor model. Actors are the primitives that form the basis of the Actor model of concurrent digital computation.

Why does Actor model theory matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Actor model theory?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Actor model theory.

Tags

  • Actor model (computer science)
  • Denotational semantics
  • Mathematics of computing

Keep exploring