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
- Thread Pools
- Background Worker
- 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.