Bhavesh Bania

Bhavesh Bania

  • NA
  • 2
  • 2.3k

Shared resources

Sep 28 2013 3:30 AM
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) ?

Answers (1)