If your app is encrypting and compressing quite a bit of data, and you have multiple processors available to do the work, is there any way I can get this encryption and compression process to use both processors? These are computationally intensive operations.

In the February issue of MSDN Magazine, Stephen Toub demonstrates how to optimize compression and encryption via a parallel stream pipeline by using his BlockingStream and StreamPipeline classes.

For more .NET programming guidance from Steve, check out our past .NET Matters column archives or subscribe to the RSS Feed for notice of new installments.