Perfect for a Networking scheduler... if you're counting the load on each thread to distribute newer requests to the less loaded threads, then you really don't need an atomic variable that wastes CPU cycles by waiting for the threads to be synchronized, you could just read, and even if the scheduler reads an old value that was updated 10 seconds ago by the thread, who cares? It would work perfectly for distrubiting the load. I exaggerated of course, but that'd most likely be a few nanoseconds delay in CPU times between threads, so even more perfect. This relaxed consistency model is preferred in this case over the atomic models that require consistency. That also works because you there would only be one thread always writing to the variable, while the scheduler merely reads it, so no undefined behavior.
Perfect for a Networking scheduler... if you're counting the load on each thread to distribute newer requests to the less loaded threads, then you really don't need an atomic variable that wastes CPU cycles by waiting for the threads to be synchronized, you could just read, and even if the scheduler reads an old value that was updated 10 seconds ago by the thread, who cares? It would work perfectly for distrubiting the load. I exaggerated of course, but that'd most likely be a few nanoseconds delay in CPU times between threads, so even more perfect. This relaxed consistency model is preferred in this case over the atomic models that require consistency. That also works because you there would only be one thread always writing to the variable, while the scheduler merely reads it, so no undefined behavior.
hi Professor can you please share some book that has PSO (partial store order) its intitial configurations and transition system.
Thank you!!!!! Your videos helped me a lot for my exams!!!!!!!!!!!!!!!!!!
this video is same as the previous one
yes because previous video is wrongly uploaded and video of sequential consistency model is missing
Thank you!
Thank you :)