Saturday, June 1, 2013

multithreading samples,can you recommend some to me?thank you!

You can refer to my thread for some basic samples.


Asynchronous Programming




Asynchronous Programming




Now a days computers, have multiple cores in its processors, capable of executing multiple programming in parallel. Our code should be written to utilize the available resources to provide high performance processing to our clients. To support this .Net provided many classes written on top of windows low level API.


We can write parallel programming using following concepts



  • Threads

  • Thread Pools

  • Background Worker

  • Timers

  • Delegates with Begin Invoke


we can write asynchronous programming in following modes



  • Start a code execution in a new thread and let it complete its work.

  • Start a code execution in a new thread with a method (using delegate) to thread so that the method will call back our method after completion of the program.

  • Start a code execution in a new thread and do some other work and wait for the signal from the thread about the completion of the thread.







Muthukrishnan Ramasamy

net4.rmkrishnan.net

Use only what you need, Reduce global warming



No comments:

Post a Comment