Chapter 7. Thread Pools and Services (Scalable Programming)

The preceding chapter showed how you can create multithreaded clients that call XML Web services or remote components asynchronously. Along the way, we sorted through the details of responsible threading, with topics such as synchronization and callbacks. This chapter shifts the focus and asks how threading can be put to use in a remote component.

To answer this question, we need to consider different singleton designs. With singleton designs, you are responsible for adding the infrastructure that allows your component to support multiple simultaneous users. You’ll need to spawn new threads as needed, track users, and ensure thread safety. Furthermore, if you’re expecting a large user ...

Get Microsoft® .NET Distributed Applications: Integrating XML Web Services and .NET Remoting now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.