简体   繁体   中英

How use MultiThreading in VB.NET?

I have example MultiThreading in VB. Net, I using thread to spider site,, I have a problem:

I have to syncLock to lock sql query select top 1 link from tblSite where process = 0 and i update process = 1, End SyncLock

I spider content with links, and i update LastUpdate in DB, An Proces = 0... ..

I do it slowly, can i help about performance with multi thread. And i use to spider?

Async IO you must use. And sync table in process not, but server place lock let instead.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM