
多線程
A straightforward way to implement multithreaded applications is to associate a lightweight process with each thread. 一種實(shí)現(xiàn)多線程程序最直接的方法就是用一個(gè)輕進(jìn)程關(guān)聯(lián)每個(gè)線程。
Synchronization provides a compromise between the unstructured nature of multithreaded programming and the structured order of synchronous processing. 同步可以在多線程編程的非結(jié)構(gòu)化特性與同步處理的結(jié)構(gòu)化順序之間進(jìn)行平衡。