Optimization for number of goroutines using feedback controlincrementLimit() changes upper of semaphore variable • Ensure atomicity of above operations ## Kaburaya ## Architecture of kaburaya - The optimal number of concurrency to be determined dynamically and be controlled semaphore to bound concurrency. • Kaburaya is “鏑矢” which is a Japanese arrow with a whistle. https://github.com/monochromegane/kaburaya ## monochromegane/kaburaya • Kaburaya optimizes the number of goroutines goroutines by feedback control. func main() { sem := kaburaya.NewSem(100 * time.Milliseconds) var wg sync.WaitGroup for i := 0; i < 10; i++ { wg.Add(1) sem.Wait() Wait for decrement0 码力 | 66 页 | 13.04 MB | 2 年前3
共 1 条
- 1













