News for hackers. Stuff that matters.
Re:Goroutines Under the Hood (2020) by danachow on Sunday June 05, 2022 @06:41PM (#31635518)
> modern processor would make a context switch a one instruction affair.

Reduced instruction set (complexity) is a hallmark of modern processor designs, not the other way around.

You might want to read about what is involved in a task switch (either "thread" with same memory mapping, or "process") but it is not something that is conducive to reasonably carry out in one instruction.

There are no comments on this comment yet.