On Mon, Aug 26, 2019 at 10:48 AM <
sudars...@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