由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
相关主题
thread c++ 问题C++的一个mutex问题
c++里面有什么Container插入是最快的?Re: 什么叫活活堵死 (转载)
[合集] 再问一个接受udp数据的问题,急python Global Lock
what is "recursive locks by the same thread"真正的multi-threading是5个thread要5个cpu?那apache是真正的m
有人做quantum computing system吗?multi threading 还是 multi processing
C language的functoin-based reuse的问题(概念级的)thread, semaphore, 问题。
[合集] can a single thread run into deadlock?python下的expect
这个函数有问题吗?多线程编程前景如何?
相关话题的讨论汇总
话题: deque话题: thread话题: other话题: end
进入Programming版参与讨论
1 (共1页)
j******n
发帖数: 271
1
Can anyone tell if it is safe to manipulate std::deque simultaneously,
without any locking, from two threads if care is taken so that one thread
always add to one end and the other always remove from the other?
z***9
发帖数: 696
2
I guess deque is not thread-safe, unless specifically mentioned.
j******n
发帖数: 271
3
A naive implementation of deque seems to allow safely adding at one end by
one thread and removing from the other end simultaneously. I would know if
there is anything in the implementation in std that breaks that.
1 (共1页)
进入Programming版参与讨论
相关主题
多线程编程前景如何?有人做quantum computing system吗?
c++下如何实现多线程?C language的functoin-based reuse的问题(概念级的)
[合集] 怎么样提高自己的multi-thread programming能力?[合集] can a single thread run into deadlock?
有谁用TBB吗这个函数有问题吗?
thread c++ 问题C++的一个mutex问题
c++里面有什么Container插入是最快的?Re: 什么叫活活堵死 (转载)
[合集] 再问一个接受udp数据的问题,急python Global Lock
what is "recursive locks by the same thread"真正的multi-threading是5个thread要5个cpu?那apache是真正的m
相关话题的讨论汇总
话题: deque话题: thread话题: other话题: end