1

!rant
can you give me/point me to some good example problem/exercise for multithreading? as in, something that's small in scope, but actually requires dealing with most of the multithreading issues & complications? race conditions, synchronization, locks, shared memory access, cross-thread calls/callbacks, etc?

Comments
  • 1
    https://youtu.be/pGjlHFAVnws

    My youtube channel builds an mmorpg. Can recommend that as a multithreading hell, if done wrong.

    Honestly build something that is called from many threads and cleanly has to track state. E.g. Money and 2 methods add and remove. Without a database or redis or so. Keep the value in sync between threads as many parallel get, set, add and remove calls as possible.

    Another example make a matchmaking algorithm actually matchmake 2 persons aka threads.
  • 1
    @KDSBest

    hah, yeah, mmorpg, yeah, but that's a whole separate beast in and of itself... :)

    thanks for the other idea though, that sounds somewhat like what I had in mind, not sure why I couldn't come up with it by myself.
Add Comment