帮忙翻译关于vb.net进程的英文
来源:百度知道 编辑:UC知道 时间:2024/09/21 02:48:51
Although this exercise uses VB.NET code, there's no reason why you can't get the same results using C#.
What is a thread?
The first question we need to answer is "what is a thread?" Well, put simply, a thread is like running two programs in the same process. Every piece of software you've written thus far contains at least one thread - the primary application thread.
For the uninitiated, a process is effectively an instance of a running program on your computer. Say you're running both Microsoft Word and Microsoft Excel. Both Word and Excel both run in a separate process, isolated from each other. With Windows 2000, there is also a collection of other programs that run in the backgr
中一个最显着的新功能在vb.net是有能力创造线程在您的申请。 Visual C + +开发已能写的多线程代码多年,但达到同样的效果在VB6的是困难重重。
虽然这次演习使用vb.net的程式码,所以没有理由你不能得到相同的结果,使用C # 。
什么是线程?
第一个问题我们需要的答案是“什么是线程” ?那么,简而言之,一个线程是想运行两个程序在同一进程中。每一件软件您的书面因此,到目前为止,至少包含一个线程-主要应用程序线程。
对于经验缺乏者,一个过程,是有效的一个实例正在运行的程序在您的计算机上。说您正在运行均Microsoft Word和Microsoft Excel 。双方Word和Excel都运行在一个单独的进程,孤立对方的经验。与Windows 2000 ,也有收集的其他程序在后台运行,提供的东西一样,支持USB ,网络连接,等等。这些都是所谓的“服务” ,和每一个那些运行在其自己的服务。
一个典型的例子多线程使用的是Microsoft Word的拼写检查。一个线程(主应用程序线程)让您输入文字到您的文件,另一个线程运行,不断和手表什么您输入的同时,检查错误,因为你去和疲弱的问题与拼写。
原因是使用线程很简单-它提高的表现,您的申请,或者更确切地说,它改善了用户体验。现代计算机系统的设计做很多事情,一次,并使用我们的Microsoft Word的例子再次,与时俱进,与无论您打字并不困难。事实上,在Word中有很多的备件加工能力,因为它可以工作,使很多次,速度比你或我可以键入。通过引入线程可以做其他的东西在背景中, Word可以利用的备用容量,在您的电脑,并让您的用户体验,多一点愉快。
另一个例子是Internet Explorer 。每当IE浏览器,以获得资源,如网页或图片,从互联网上,它这样做是在一个单独的线程。的结果,这是您不须等候,即得到一整页之前,它会显示该网页给你。例如,它可以下载的HTML弥补的文本网页,在一击中,使用主要的应用程序线程,以显示你是什么,迄今已和那么它可以启动多个线程自动消失,并下载每个形象的参照在该网页上。您仍然可以滚动向上和向下的网页,尽管事实上它仍然忙碌获得其余的数