Ian, thank you very much! Found it and am now trying to somehow get my head around it!
On Thursday, May 26, 2022 at 9:46:26 PM UTC+2 Ian Lance Taylor wrote: > On Thu, May 26, 2022 at 12:08 PM TheDiveO <harald....@gmx.net> wrote: > > > > > On Thursday, May 26, 2022 at 8:51:49 PM UTC+2 Ian Lance Taylor wrote: > >> > >> If the scheduler is running on a goroutine locked using > >> runtime.LockOSThread and needs to start a new thread, it does so by > >> asking a template thread to create it. The template thread doesn't do > >> anything other than create new threads, so it should be in a clean > >> state. > > > > > > Do you per chance have a link to where I can find the template thread > handling in the runtime scheduler? > > Search for [tT]emplateThread in $GOROOT/src/runtime/proc.go. > > 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 golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/b7e82ce4-e1c3-460a-862a-5905dd9b9f77n%40googlegroups.com.