Search⌘ K
AI Features

Active Object

Explore the active object pattern, which separates method execution from method calls by assigning each object its own thread. Understand components like proxy, scheduler, activation list, servant, and future. Learn how this pattern enables asynchronous execution, improves throughput, and offers clear client-server separation while managing concurrency in C++ software.

Introduction

According to the active object pattern, the method execution should be separate from the method call. It is called an active object because, according to this pattern, every object owns its thread. Each method invocation is not performed instantly. Instead, it is stored in an activation list. A scheduler will decide which method to execute from the list.

Structure

The active object design pattern has the following components.

Proxy

There is a Proxy for the member functions in the active object. It triggers the ...