Friday, January 7, 2011

MultiThreading in Asp.net Web apps

Multi threading in asp.net can be achieved using two ways
1)Using BackgroundWorker class
2)Spanning new process thread on user interaction

While handling resource intrinsic operations concurrently like sending 1000s of email on a button click we have to use a separate process for every user

If the operation is global to the application but needs to be done in background then use Backgroundworker class

No comments: