Got it. Thank you!

On Saturday, September 5, 2020 at 12:01:03 PM UTC+9 Ian Lance Taylor wrote:

> On Wed, Sep 2, 2020 at 9:11 PM Yonatan Gizachew <eme...@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...@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/f8593be3-4000-4e75-811a-8ac63e3eb558n%40googlegroups.com.

Reply via email to