Grokking Operating Systems and Networking for Backend Engineers
0% completed
Context Switches and What They Cost
On a cloud server with 2 CPUs, the kernel stopped one process and started another in 2.76 microseconds, counting the pipe calls that caused the switch. That number sounds too small to matter. On the same server, however, a process that touched 16 MB of its own data took 133 microseconds to do so when it ran alone. It took 275 microseconds when another process had used the CPU just before it.
The second number is the one that rarely appears in a benchmark. The switch itself was quick
.....
.....
.....
Like the course? Get enrolled and start learning!
Reading Progress
0%