This sample demonstrates the use of multiple listener threads. This technique may be advisable for applications having “heavy” transactions (i.e. transactions which operate on many objects requiring updates to many indexes, etc.).
In a console window run:
cluster_mt 2 0Then in a second console window run:
cluster_mt 2 1But it is more instructive to run one instance in your development environment debugger, stepping through the code.