What is the difference between using NSThread.Sleep and using System.Threading.Thread.Sleep ? Which one should I prefer to use? Or, Are both interchangeable?
So NSThread APIs go directly to Cocoa: https://github.com/xamarin/xamarin-macios/blob/master/src/foundation.cs#L10062
Which means it's a implementation detail of Cocoa, but is aware of your message pump
Where as mono's goes to:
which does not know anything about Cocoa at all.
So if your thread is the main thread, or has anything to do with Cocoa at all, you should use the NSThread APIs likely. If it's just some random managed thread / threadpool then the System.Threading API is likely fine.
Xamarin Inc., as a wholly-owned Microsoft subsidiary acting as a separate legal entity, adheres to the Microsoft Privacy Statement: Privacy & cookies