top | item 14563906

(no title)

mee_too | 8 years ago

This person switches threads :)

But in practice, I guess this legacy architecture adds a nanosecond or two to a thread switch. Is that a big deal? How many switches does a desktop PC do in a second? How about an AWS/Azure/GCP server?

I've never experienced lag in a game or app or web server due to slow thread switch. Server side async is on the rise anyway, minimizing number of threads and switches.

discuss

order

amluto|8 years ago

> But in practice, I guess this legacy architecture adds a nanosecond or two to a thread switch. Is that a big deal?

I would guess the total wasted time is more like 500 cycles. This won't make your game lag, but it does mean that extremely low overhead synchronous IPC can't happen on x86.

mee_too|8 years ago

What types of programs are impacted by the lack of low overhead synchronous IPC?