|
Thread and Sync In C# (C#中的线程与同步)(1)
Don't believe everything they've told you. Threads in C# are actually pretty easy. XML:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
别相信别人告诉你的所有的事。其实C#中的线程是很简单的。
A thread is an encapsulation of the flow of control in a program. you might be used to writing single-threaded programs - that is, programs that only execute one path through their code "at a time". If you have more than one thread, then code paths run "simultaneously".
线程是程序中的控制流程的封装。你可能已经习惯于写单线程程序,也就是,程序在它们的代码中一次只在一条路中执行。如果你多弄几个线程的话,代码运行可能会更加“同步”。
|