it seems from your suggested solutions that you're concerned about cpu
usage. does the goroutine communicate with anything? you can limit its
resources by feeding it less data (via a limiter goroutine) or by
editing it itself do less work (via editing the code)? there is
nothing inherently needed from the operating system to throttle it, it
can all be done via go communication patterns. for example we often
limit how much work can be done by using a n-sized buffered channel
that ensures only n items are processed at a certain time.
On Wed, Aug 15, 2018 at 9:29 PM Olivia Nelson
<the.warl0ck.1...@gmail.com> wrote:
>
> I'm trying to limit the CPU usage of a goroutine. Is there anything like 
> SuspendThread on windows and SIGSTOP/SIGCONTINUE on linux?
>
> I'm not sure if it's possible.
>
> --
> 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.
> For more options, visit https://groups.google.com/d/optout.

-- 
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to