26 Kasım 2020 Perşembe

Task Sınıfı Converging Back to The Calling Thread

Giriş
Açıklaması şöyle
On the same threads synchronization topic, the Task library enables several ways to wait until other tasks have finished their execution. This is a significant expansion of the usage of the Thread.Join concept.

The methods Wait , WaitAll , and WhenAny are different options to hold the calling thread until other threads have finished.
Wait metodu
Örnek ver

WaitAll metodu 
Task.WaitAll metodu yazısına taşıdım.

WhenAny metodu
Örnek ver

WhenAll metodu
Task.WhenAll metodu yazısına taşıdım.

Hiç yorum yok:

Yorum Gönder