Hi All Experts,
I have recently started reading multithreading as a beginner so question might be silly but i need to know this.
I have developed an application in which i have used multiple threads using static variable. Is there any way to know which thread is currently using this variable ? Or can we set some kind of priority on threads so that highest priority thread will always have access to that shared variable irrespective of the state of that variable whether it is being used or not (no exception of cross thread) ?
Loading
Posted Sep 30, 2013, 1:54 AM
Is there any way to know which thread is currently using this variable?
It is very difficult, to identify it. Visual studio 2013 (Preview) improved for debugging multi-thread application.
Or can we set some kind of priority on threads so that highest priority thread will always have access to that shared variable irrespective of the state of that variable whether it is being used or not (no exception of cross thread) ?
I'm not sure about this, but you can look at the below link.
http://msdn.microsoft.com/en-us/library/dd642243.aspx