Jaxcent for .NET

Multiple Threads in Jaxcent

Multiple threads can be doing output to Jaxcent pages. The sample "SimpleClock" shows an example of a thread that sleeps for 1 second, then updates a clock.

The output from multiple threads will be synchronized internally be Jaxcent.

The threads should have a mechanism to terminate when the page unloads. This is done by catching the exception PageUnloadedException and terminating the main processing loop of the thread.

If Jaxcent sessions are being used, and if multiple threads are accessing them, the access should be synchronized via lock statements. The Jaxcent sessions extend Dictionary, and access to the dictionary is not synchronized.