Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Confused about which container or shared resource to use

20 views
Skip to first unread message

kus

unread,
Mar 23, 2017, 5:45:42 AM3/23/17
to
Hi,
As many of the readers have read from my precious posts,
this post deals with issue of multithreading.So,
my question is which type of container should i use so that from one
thread i am doing only write operation on the thread.But other threads,
just either perform modification on that container(it maybe update on
the element or removal of element according to condtion satisfied)or
read operation on the container.In most of the cases,using stl
containers like deque and vector am not able to eradicate the issue of
invariant broken thus causing segmentation fault.So,what strategy should
i use and which container suits best for the situation?

kus

unread,
Mar 23, 2017, 5:54:07 AM3/23/17
to
Sorry for the grammatical errors
0 new messages