一般而言,应用程序中的一个次要线程总是为主线程执行特定的任务,这样,主线程和次要线程间必定有一个信息传递的渠道,也就是主线程和次要线程间要进行通信。这种线程间...
代码说明:
一般而言,应用程序中的一个次要线程总是为主线程执行特定的任务,这样,主线程和次要线程间必定有一个信息传递的渠道,也就是主线程和次要线程间要进行通信。这种线程间的通信不但是难以避免的,而且在多线程编程中也是复杂和频繁的,下面将进行说明。-Generally speaking, the application of a secondary thread is always the main thread to perform a specific task, so that main thread and secondary threads must have a channel for the transmission of information, which is the main thread and the secondary thread to communicate between. This inter-thread communication is not only inevitable, but also in multi-threaded programming is complex and frequent, the following description will be carried out.
下载说明:请别用迅雷下载,失败请重下,重下不扣分!