What is the primary purpose of the Active Object pattern in concurrent programming?
-
A
To serialize all method calls into a single thread of execution
-
B
To decouple method execution from method invocation for objects that reside in their own thread of control
-
C
To create a pool of threads that execute tasks on demand
-
D
To synchronize access to shared resources using mutual exclusion locks