Chapter 3Threading and the Asynchronous Pattern
|
||
|
Pre-requirement for codes compilation:
What do we have in this chapter?
ThreadingCreating a ThreadC++ Thread Program ExampleC# Thread Program ExampleVB .NET Thread Program ExampleAbort()Suspend(), Interrupt(), and Resume()Finishing a ThreadWindows Forms I/O Problem Using ThreadingC++ WinForm Program ExampleUsing Events to Synchronize ThreadsDesigning Critical Sections in Your CodeMonitorInterlockedC++ Critical Section Program ExampleVB .NET Critical Section Program ExampleC++ Asynchronous I/O Program ExampleC++ Thread and Network I/O Program ExampleVB .NET Thread and Network I/O Program Example
Summary
This chapter will introduce two important concepts useful in network programming: threading and the asynchronous pattern. These asynchronous programming techniques allow you to design more flexible applications so that you can do multiple things at the same time in one application. This flexibility is important because you can develop a networking application that can service a user interface while it processes I/O on a network, which makes the user experience much better. Many of the remaining chapter discussions and samples will use these asynchronous programming techniques.
|
|
|
![]() Custom Search
|
|
< Managed I/O: Streams, Readers, and Writers | Part 1 | Part 2 | Part 3 | Part 4 | Part 5 | Part 6 | Part 7 | Part 8 | Part 9 | Part 10 | Serialization > | ||