Tagged With: non-blocking

Allocator for (Re)Actors with Optional Kinda-Safety and Relocation

August 15, 2017 by “No Bugs” Bunny

Allocator for (Re)Actors with Optional Kinda-Safety and Relocation - Post preview image

Quote:

Safe with relocation’ mode will allow us to eliminate dreaded ‘external fragmentation’ – which tends to cause quite a bit of trouble for long-running systems

Another Quote:

For a long while, I have been a strong proponent of message-passing mechanisms over mutex-based thread sync for concurrency purposes

Filed under: On.System Architecture(Re)ActorsOn.ProgrammingOptimizations

Read more

Implementing Queues for Event-Driven Programs

June 13, 2016 by “No Bugs” Bunny

Implementing Queues for Event-Driven Programs - Post preview image

Quote:

full queues SHOULD NOT happen during normal operation

Another Quote:

With queues-implemented-over-mutexes like the ones we’ve written above, the most annoying thing performance-wise is that there is a chance that the OS’s scheduler can force the preemptive context switch right when the thread-being-preempted-is-owning-our-mutex.

Filed under: Book: D&D of MOGs1st beta of Vol. IV-VIOn.System Architecture(Re)ActorsOn.ProgrammingTips and Tricks

Read more

C++ Performance: Common Wisdoms and Common “Wisdoms”

May 30, 2016 by “No Bugs” Bunny

C++ Performance: Common Wisdoms and Common “Wisdoms” - Post preview image

Quote:

over(ab)using C++ features is a different story, we’ll discuss these features below on case-by-case basis

Another Quote:

Compiler will use all its Next-to-Divine Wisdom to show you that it is smarter than you are, and to ignore most of those inline specifications you carefully wrote.

Filed under: Book: D&D of MOGs1st beta of Vol. IV-VIOn.ProgrammingTips and TricksProgramming LanguagesOptimizations

Read more

MMOG. Point-to-Point Communications and non-blocking RPCs

February 8, 2016 by “No Bugs” Bunny

MMOG. Point-to-Point Communications and non-blocking RPCs - Post preview image

Quote:

In other words, you can write your code 'as if' all-your-code-within-the-same-FSM executed within the same thread

Another Quote:

As soon as we have these two parts of processing – we can say that our Server-to-Server communication is tolerant to all kinds of transient inter-server disconnects

Filed under: Book: D&D of MOGs1st beta of Vol. I-IIIOn.System ArchitectureDistributed systemsOn.ProgrammingNetwork Programming

Read more