Monday, May 15, 2017

CSharp

Threading you tube url
Multi threading adv and disadv url
C# threading interview questions url



  • Threading helps us to execute program parallel.
  • Back ground thread die off if the main app exits 

  • Ex: Thread thread =new Thread(testmethod);
  • thread.Isbackground=true;

  • Foreground thread stays even if main thread exits.
Thread synchronization can be done using Lock, mutex or semaphonre.

Task Parallel Library url *****
TPL is more efficient than threading. Threading will not use the processor completely instead it will run only on specific process. TPL is the best way to utilize the resource completely and efficiently.

Async and Await: url

Async and await are code markers which mark code positions from where the controls should resume after a task completes.


No comments:

Post a Comment