Apr 30, 2020 + 1421 字 《Go 语言之旅》练习题解答代码(并发部分) 在 Golang 中使用 go 关键字可以很方便地创建轻量级线程,也就是 Goroutine,从而实现并发。本文是《Go 语言之旅》中“并发(Concurrency)”章节中的练习题,并附上了我...
May 01, 2019 + 1336 字 基于 C++ STL 和 pthread 实现一个多线程并发访问的队列 这是一道作业题,题目如下:Implement a multi-access threaded queue with multiple threads inserting and multiple...