Will the kernel object be used in the c # processor cache flush?

If I have some code similar to this:

ManualResetEvent me = new ManualResetEvent(false);
. . .
int a = 10;
. . .
me.WaitOne();
. . .

      

Assuming it a

is in the CPU cache after being assigned, will WaitOne call it in RAM?

Or (more importantly)

will accessing a kernel sync object (like WaitHangle) from .NET cause the processor's cache / memory to fail?

or

switches to kernel mode, need memory protection?

+3


source to share





All Articles