All Questions
Tagged with .net-core multithreading
3
questions
0
votes
0
answers
77
views
How to send messages in the order they were queued, while ensuring that client B does not have to wait until client A has received his message?
I have a simplified producer/consumer pattern implemented below. The code outputs:
"A"
1 second delay
"B"
1 second delay
"A"
1 second delay
"B"
...
What ...
1
vote
1
answer
640
views
Throttling the factory function of a Lazy<T> instantiated with LazyThreadSafetyMode.PublicationOnly
When you use the constructor of Lazy<T> requesting the valueFactory and mode parameters (I mean this one) you can specify LazyThreadSafetyMode.PublicationOnly.
This way you can prevent the Lazy ...
5
votes
3
answers
2k
views
Multithreading ( thread per area ) for an MMO server, good idea?
As a personal project, I'm setting up a MMO, and writing the server in C#/.NET Core.
As of now my architecture is as follows: The world exists of different areas ( you can go from area to area trough ...