Tagged With: Multithreading

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

Infographics: Operation Costs in CPU Clock Cycles

September 12, 2016 by “No Bugs” Bunny

Infographics: Operation Costs in CPU Clock Cycles - Post preview image

Quote:

Back in 80s, it was possible to calculate the speed of the program just by looking at assembly.

Another Quote:

keep in mind that these days compilers tend to ignore inline specifications more often than not

Filed under: On.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

Network Programming: Socket Peculiarities, Threads, and Testing

May 9, 2016 by “No Bugs” Bunny

Network Programming: Socket Peculiarities, Threads, and Testing - Post preview image

Quote:

I am not saying that this architecture is the only viable one, but it does work for TCP for sure (and performs reasonably well too)

Another Quote:

The whole task of optimizing performance beyond, say, 20-50K packets/second per box tends to be Quite Elaborated, and involves quite a few things which are platform- and hardware-dependent.

Filed under: Book: D&D of MOGs1st beta of Vol. IV-VIOn.System ArchitectureDistributed systemsOn.ProgrammingTips and TricksNetwork Programming

Read more