On Mon, Aug 26, 2019 at 10:48 AM <sudarshan...@gmail.com> wrote: > > I am planning to replace C++ threadpool class with goroutines. I see several > go implementations for threadpool.
Without getting into how to do this, why do you want to do this? Goroutines work very well for Go code, but when Go code calls into C++ code, it uses up a thread. The Go scheduler support for multiplexing goroutines onto threads does not work for goroutines that call into C++ (or any other non-Go language). So I don't think you will get any advantage by using goroutines instead of a C++ threadpool to run C++ code. 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/CAOyqgcVMyFOoTxpFL%3D-YEANm-6_41whJJh0UXwhQLx1t-Am3Gw%40mail.gmail.com.