one of the most notable new features in vb.net is the ability to create threads in your application. visual c++ developers have been able to write multithreaded code for years, but achieving the same effect in vb6 was fraught with difficulty.
what is a thread? 【程序编程相关:通过c#连结oracle数据库(五)】although this exercise uses vb.net code, theres no reason why you cant get the same results using c#. 【推荐阅读:通过c#连结oracle数据库(三)】
for the uninitiated, a process is effectively an instance of a running program on your computer. say youre 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 background providing things like usb support, network connectivity, and so on. these are called "services", and each one of those runs in its own service too. 【扩展信息:VisualStudio.NET中的团队】
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 youve written thus far contains at least one thread - the primary application thread.
... 下一页