you are viewing a single comment's thread
view the rest of the comments
[–] 9 points 2 years ago (2 children)

🤦🏽‍♀️ Thanks for explaining, my brain must have corrected the race condition.

Regarding threads: I have had good experience with using thread safe queues everywhere to exchange data between threads, it's the right tool in many cases, but I doubt queues to be useful when coding for performance.

  • source
  • parent
  • hideshow 4 child comments
  • [–] 1 point 2 years ago (1 child)

    Umm, queueing is standard practice particularly when a task is performance intensive and needs limited resources.

    Basically any programming language using any kind of asynchronous runtime is using queues in their scheduler, as well.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 2 points 2 years ago (1 child)

    Could be I was not clear when I wrote performance, I am talking about High Performance Computing, where you want to spend all CPU cycles on solving your problem. While taking Amdal's Law into account. https://en.wikipedia.org/wiki/Amdahl%27s_law

  • source
  • parent
  • hideshow 2 child comments
  • [–] 1 point 2 years ago (1 child)

    lol your operating system is using queues and buffers with multiple threads everywhere.

  • source
  • parent
  • hideshow 2 child comments