On 01/27/2018 09:55 PM, Chris Caudle wrote:
Context switches are only a few microseconds.
Certainly the right ballpark, but it depends. It could easily be a few
hundred microseconds (depending on the memory touched, the architecture,
cache layout, and CPU speed). sample-players can have a rather large
working-set for example.
You can measure it:
https://github.com/tsuna/contextswitch/blob/master/timectxswws.c
ciao,
robin