Patterns for Multithreaded Network Server in C#

后端 未结 2 1295
死守一世寂寞
死守一世寂寞 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.

提交回复
热议问题