2 ms·
Isnt there a way to limit the number of threads? Starting N threads each reads the same queue and executes the operation. The queue gets full when there are no
by StreamBright 10y ago
Isnt there a way to limit the number of threads? Starting N threads each reads the same queue and executes the operation. The queue gets full when there are no workers are available. I though you can implement something like this in Go...
- pcwalton 10y agoYou risk deadlocks if you have a limit on the number of system threads. Think about something like goroutines reading and writing from pipes.