On Thu, May 26, 2022 at 12:08 PM TheDiveO <harald.albre...@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/CAOyqgcXHJEo%3DjOmpYYCPMKe%3DTbhXThCnCHV7fAjy%3Dv6t6fC%2B3g%40mail.gmail.com.

Reply via email to