Reputation: 15545
How to use multithreading in c# for sending the SMS to multiple person at a times? Use must of multithread. means must execute sms sending code/process independently at a time. (synchronisely) how can i do this ? please guide.
Upvotes: 1
Views: 677
Reputation: 5070
Well, In my project in WCF service I use for instance ThreadPool class for sending emails. In that case emails will be quequed and this will ensure that service will not "hang". Creating lots of different threads may lead to clogging of the system
Upvotes: 0
Reputation: 62101
Start reading the documentation - or a book like "c# in 21 days".
There are ample of samples for using WorkItems.
is a decent start documentation wise.
Upvotes: 1