Thread.Sleep(5000); stopwatch.Stop(); Console.WriteLine(stopwatch.ElapsedMilliseconds); Thread.suspend(5000); Console.WriteLine(stopwatch.ElapsedMilliseconds);
Sleep means a sleeping stream of 5000 (ms). suspend means stopping the thread when the thread starts again.
Sleep is used in one thread and pauses the thread for a certain period of time. While suspend is out of date .
Also check out the MSDN notes for Suspend:
. , . , , AppDomain . , , AppDomain, . .
Source: https://habr.com/ru/post/1613641/More articles:Endless scrolling gives a pattern error when scrolling down to the next page - jqueryOptimization of implementation - androidTwo DLLs with the same namespace and type with Nuget - c #Instrument problems using Byte Buddy - javaHow to use an external alias with nuget - c #IntentFilter на NFC - Xamarin - С# - androidpandas rolling functions with a temporary group - pythonКак получить среднее ретроспективное скользящее среднее времени с окном на основе даты в numpy? - pythonto stop django after logging out - djangoLaravel custom validation parameter parameter - phpAll Articles