Patterns for Multithreaded Network Server in C#

后端 未结 2 1291
死守一世寂寞
死守一世寂寞 2021-01-31 06:18

Are there any templates/patterns/guides I can follow for designing a multithreaded server? I can\'t find anything terribly useful online through my google searches.

My

相关标签:
2条回答
  • 2021-01-31 06:49

    Oddly enough you may find something on a Computer Science Assignment, CSC 512 Programming Assignment 4: Multi-Threaded Server With Patterns. Altough it's C++ voodoo but the theory is quite understandable for someone who can do C#.

    • Acceptor/ Connector
    • Monitor Object
    • Thread Safe Interface
    • Wrapper Facade
    • Scoped Locking
    • Strategized Locking
    • Reactor
    • Half Sync/Half-Async
    • Leaders/Followers

    Altough you can get the whole list of nice readings on the main page.

    0 讨论(0)
  • 2021-01-31 06:50

    Take a look at this previous question:

    How do you minimize the number of threads used in a tcp server application?

    It's not strictly C# specific, but it has some good advice.

    0 讨论(0)
提交回复
热议问题