Home > categories > Security & Protection > Lock Parts > Multi Threading and lock statement in c?
Question:

Multi Threading and lock statement in c?

If I have class A, and class B.Class B has a field of type A.I have some background process that is using B and is locking it.Is A locked as well?e.g.void Main(){ A varA new A(); B varB new B(); B.innerA varA; this.StartBG(varB); // starting a thread and locking B part of the time // is varA locked when B is locked? or only when access via B.innerA?}

Answer:

that hes scared of himself or a paranoid guy
The shield is missiles on Russia's borders not a force field like star trek remember Cuba, this is just the other way round, American aggression, we don't need it, leave the bear in the forest, poke it with sticks just annoys it

Share to: