Session
Thread Smart: Building High-Performance Network Servers in C#
As your application grows, managing multiple users or simultaneous network connections can become challenging unless you leverage the power of multithreading. This session will introduce you to concurrent network programming, focusing on effectively handling multiple connections using threads, tasks, and the asynchronous programming model. You will learn to manage concurrency safely using synchronization primitives such as locks, SemaphoreSlim, and Monitor, all while minimizing performance bottlenecks.
Woody will guide you in building a robust, multithreaded TCP server capable of accepting and processing multiple client requests in parallel. You will also learn to avoid common issues like race conditions and resource contention. Additionally, the session will cover how to implement SSL using SslStream, ensuring that your multithreaded server is secure by default. This is an essential session for anyone developing network services in .NET who wants to scale efficiently while maintaining reliability.
Key Takeaways:
• Learn how to handle multiple clients using threads and tasks.
• Understand when to use synchronization tools like lock, Mutex, and SemaphoreSlim.
• Explore techniques for managing shared state safely with ConcurrentDictionary.
• Secure multithreaded communication using SslStream.
Target Audience:
.NET developers building network servers or services who want to handle concurrent users safely and efficiently using multithreading.

Chris Woody Woodruff
Architect at Real Time Technologies
Grand Rapids, Michigan, United States
Links
Please note that Sessionize is not responsible for the accuracy or validity of the data provided by speakers. If you suspect this profile to be fake or spam, please let us know.
Jump to top