开发者

creating multi threaded windows service

开发者 https://www.devze.com 2023-04-06 13:07 出处:网络
I need guidance in creating a Multi Threaded Windows Service. The Service needs to read records from a database Table and saves it to

I need guidance in creating a Multi Threaded Windows Service. The Service needs to read records from a database Table and saves it to another service(Serv开发者_StackOverflow社区iceB). The table might contain thousands of records which the service needs to read 100 at a time and do something and saves it to ServiceB and again take another 100 records from the table and process it and saves it to Service B. And the process should continue like that till it finishes all the records.

At the same time this service will get the results from ServiceB. and update the table with the result from ServiceB. So this service needs to do two thing simultaneously. Any idea what is the best method to do it or any help is appreciated.


I think you need to check about Thread. Microsoft has a good Tutorial for Thread.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号