我爱Aspx >> VB.Net >> 介绍VB.NET的线程(英文)One classic server application example is collating information from diverse data sources. Imagine you build a method on an object that needs to collect responses from five or six Web Services dotted around the Internet. Each of those Web Services will have a certain response time, depending on how busy the server is, how far away it is (in terms of the quality of the link) and what it has to do to get the data. You cannot return from the method until you@#ve correlated all of the responses from each of the servers.
Without threading, you have to do this job sequentially, i.e. you ask the first one, wait for a response, ask the second one, wait again, and so on. With threading, you can make all the operations sequential by making all six requests at the same time, and then collate information when all the requests have been satisfied. That way, the caller has to wait for the "longest response time", rather than an aggregate of all six of the response times.
【我对这篇文章有话说?】
一步一步安装VB.Net(图片较多,..[05-20]
走近VB.Net(一),VB中的族,类,..[05-20]
VB.Net中文教程(1) 类别与封装性[05-20]
VB.Net中文教程(2) Composite样式[05-20]
VB.Net中文教程(3) 继承与封装性[05-20]
VB.Net中文教程(4) 类别继承(Inh..[05-20]
VB.Net中文教程(5)程序多重定义[05-20]
VB.Net中文教程(6) 母子对象关系[05-20]
VB.Net中文教程(7) Me参考值[05-20]
VB.Net中文教程(8) 对象(Object)..[05-20]
一步一步安装VB.Net(图片较多,..[05-20]
走近VB.Net(一),VB中的族,类,..[05-20]
VB.Net中文教程(1) 类别与封装性[05-20]
VB.Net中文教程(2) Composite样式[05-20]
VB.Net中文教程(3) 继承与封装性[05-20]
VB.Net中文教程(4) 类别继承(Inh..[05-20]
VB.Net中文教程(5)程序多重定义[05-20]
VB.Net中文教程(6) 母子对象关系[05-20]
VB.Net中文教程(7) Me参考值[05-20]
VB.Net中文教程(8) 对象(Object)..[05-20]