I'll try 1.14, when writing cpu-intensive programs (I'm mainly a database), I found that cache misses from routines switching is also a headache and I don't know how to deal with it.
在2021年2月2日星期二 UTC+8 上午8:10:12<Ian Lance Taylor> 写道: > On Mon, Feb 1, 2021 at 4:07 PM Wojciech S. Czarnecki <[email protected]> > wrote: > > > > Dnia 2021-02-01, o godz. 11:12:22 > > Ian Lance Taylor <[email protected]> napisał(a): > > > > > On Mon, Feb 1, 2021 at 9:33 AM 颜文泽 <[email protected]> wrote: > > > > > > go version go1.13 linux/amd64 > > > > > Goroutines that run for a long time without yielding the processor are > preempted. > > > > Since go1.14 TMK. OP is using 1.13. > > In Go 1.14 and later they are preempted by signals. Before Go 1.14 > they were still preempted, it just happened when making a function > call (which meant that the preemption could be arbitrarily delayed). > > Ian > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/26178bb4-9f60-4fd4-bf3a-9c170e18152bn%40googlegroups.com.
