yet but the info there seems to be somehow obscure...
A critical section of a thread usually avoids other threads to be running in the same time of your threads, not letting the cpu running others proccess that may affect yours..
but MSDN talk about
Notifies a host that execution is about to enter a region of code in which the effects of a thread abort or unhandled exception might jeopardize other tasks in the application domain.
is telling about aborting, something like if this thread fails it will cancel the others thread running to avoid system problems.. nothing about the code...
C# has a lock option (that I'm still trying to understand), that will avoid another thread entering a critical region until this object is released by the thread.. any one know the vb
function for that option??
quote:Causes a thread to wait the number of times defined by the iterations parameter.
quote:Blocks the current thread for the specified number of milliseconds.
maybe the diference between them is in the Micro and spinwait will be faster?
Read this if you want to know how to get a correct reply for your question:
^^Took that from dparsons signature and he Took that from planoie's profile
My programs achieved a new certification (can you say the same?):
WORKS ON MY MACHINE
I know that CVS was evil, and now i got the proof: