News for hackers. Stuff that matters.
Re:Operation Costs in CPU Clock Cycles by scottlamb on Saturday November 12, 2016 @01:31PM (#12939344)
I like this chart. In particular, I like that they break apart "thread context switch (direct costs)" and "thread context switch (total costs, including cache invalidation)". I've often heard that context switches are cheap because people only consider the direct costs.
Re:Operation Costs in CPU Clock Cycles by quotemstr on Saturday November 12, 2016 @01:55PM (#12939496)
Context switches are cheap because context switches are cheap. You can, with enough finnegaling, make the "indirect costs" of anything arbitrarily high.