Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Thus far we have discussed active objects as being simply a way to start asynchronous functions and handle their completion, but you can also use them to perform background processing as you can with threads. This example illustrates that concept. It also illustrates other concepts mentioned earlier, such as creating, starting, and stopping the active scheduler.
The example creates two active objects whose RunL() functions are invoked at specified intervals. This example uses the console and is built as an EXE executable that can be run on the emulator (see section 2.2.1 for how to create a console program).