The thread is suspended until the event becomes signaled by the primary thread that is executing the main function 函数的主线程终止之前,该线程一直处于挂起状态。
Threads are the best solution in such a case because it is impractical to block a main thread on an event 这种情况下线程是最好的解决方法,因为阻止事件的主线程是不实际的。
Method on each worker thread to block the primary thread until each worker thread respond to the event and terminates 方法以阻止主线程,直到每个辅助线程都响应该事件并终止。
The " hello ! " windows do not have a thread of their own ; their messages are handled by the application s primary thread 窗口没有自己的线程;它们的消息由应用程序的主线程处理。
Also , multithreading is demonstrated by firing the event from a working thread separate from primary one 另外,通过触发来自从主线程分离的工作线程的事件,还示范了多线程的应用。
Setting the thread attribute is only valid when building an . exe , as it affects the entry point of the main thread 设置线程属性只有在生成. exe时才有效,因为它影响主线程的入口点。
However , auxiliary threads can be created and used to execute code in parallel with the primary thread 返回时此线程也将终止。不过,可以创建辅助线程,以便与主线程一起并行执行代码。
In addition , the primary thread periodically displays the contents of the queue , so the queue is accessed by three threads 另外,主线程定期显示队列的内容,因此该队列被三个线程访问。
The main thread was a controls based on dialog , the worker thread was a circulation of counting lasting a long time 主线程是一个基于对话框的控件,辅助线程是一个耗时很长的循环计数。
Synchronously executes the delegate on the thread that created this object and marshals the call to the creating thread Isynchronizeinvoke . invoke方法在执行此对象的主线程上执行委托。