When I do this:
public class Employee { public int exp; } class Program { static void Main(string[] args) { Employee o1 = new Employee(); o1.exp = 3; lock (o1) { //I am here } } }
and get the memory o1 (address 0x022cf940):
I realized a couple of things mentioned below:
Question: Where is the space of synchronization blocks and how to find it? What does "12" mean?
. Object.GetHashCode(), -, GetHashCode() . . , , , . , , , GetHashCode, , . .
- , , . , , 0x12 = 18 - Thread.ManagedThreadId , . , - .
, "4- ". ( " " ). , Object.GetType() . - , . exp, - Int32, 3 .
exp