On Wed, Sep 2, 2020 at 9:11 PM Yonatan Gizachew <emeg...@gmail.com> wrote:
>
> I see. If that is so, what is the job of sysmon thread?

The sysmon thread is not related to asynchronous preemption.  The
sysmon thread does a few different things.  One of the things it does
is notice threads that have been stuck in a system call for a while,
and detach them from their P, and start running a new thread
associated with that P.  This is scheduler activity, and it permits
additional parallelism in the program, but it's not preemption.

Ian

> On Thursday, September 3, 2020 at 12:35:26 PM UTC+9 Ian Lance Taylor wrote:
>>
>> On Wed, Sep 2, 2020 at 7:14 PM Yonatan Gizachew <eme...@gmail.com> wrote:
>> >
>> > Is it possible to stop the asynchronous preemption like:
>> > GODEBUG=asyncpreemptoff=1 go build -o libgotest.so -buildmode=c-shared 
>> > -compiler=gccgo test.go
>> >
>> > I am using gccgo compiler.
>>
>> Note that executables built by the gccgo compiler don't use
>> asynchronous preemption.
>>
>> 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/2b865dc9-7992-4239-9d5f-09c0ba1fa369n%40googlegroups.com.

-- 
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/CAOyqgcX4dCF_NBEnLLK75mT%3DUh1kczeHfV7FVnWRQf5e%2BM-PoQ%40mail.gmail.com.

Reply via email to