英文: Using a GoLang Routine to Return to Multiple Threads 问题 我正在构建一个API,可以排队请求来获取外部网站,并通过与该API交互执行一些工...
为什么当我在主程序中使用goroutine时,我的程序不能关闭?
英文: Why does my program not shut down when I use goroutine in main? 问题 上下文 请仔细阅读代码中的注释,所有信息都在注释中。 如果...
Goroutines – 将关键数据发送给单个 goroutine 并等待结果
英文: Goroutines - send critical data to the single goroutine and wait for result 问题 我在我的应用程序中有许多gorou...
string vs integer as map key for memory utilization in golang?
英文: string vs integer as map key for memory utilization in golang? 问题 我有一个名为read的函数,被多个go routines调用...
在启动时从文件中加载数据,然后处理新文件,并从映射中清除旧状态。
英文: Load data from reading files during startup and then process new files and clear old state from ...
How do I make this program thread-safe, would channels be the best implementation, if so, how?
英文: How do I make this program thread-safe, would channels be the best implementation, if so, how? 问...
在并行迭代Parquet文件时高效地填充并发映射
英文: Populate concurrent map while iterating parquet files in parallel efficiently 问题 我正在使用parquet文件进...
If each thread needs to resume work, whenever any thread finds some new information, how to wait until all threads have finished?
英文: If each thread needs to resume work, whenever any thread finds some new information, how to wait...
Ticker's behavior with time.sleep()
英文: Ticker's behavior with time.sleep() 问题 代码部分已翻译如下: func main() { fmt.Println(time.Now()) tick...
在Go语言中的餐厅哲学家问题未通过单元测试。
英文: Dining philosophers problem in Go fails unit test 问题 你好!根据你提供的信息,你正在实现哲学家就餐问题,并且编写了一个测试函数来验证你的实现...
75