bud in c in trouble here
i put down my question in following steps
1.i am having a class A which has vector of objects B.
2.i am having a global function i am accessing those vector objects b through objcet of A.
3.this global function is acced by some function through function pointer.
the accessing of global function is multithreaded.
then do i need to use any mutex inorder to protect my vector?
class B class A
m_vecorobj// vector for b objects
int foo()// global function
this thread function is called in a multithreaded way.
then do i need a mutex before pushing or poping it!
how realy such situation works in Os level and memory managemnt.
i am very much thankful who give me answer with good explantion.