Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个生产者将作业一个接一个地放入队列中,另一个线程一个接一个地从队列中取出作业。我在网上的某个地方看到它可以无锁地完成。什么是正确的做法?无锁实现通常更难维护吗?假设这个项目的性能并不重要,正确性更重要。