Re: [問題] Multithread Coding and Parallel Coding

看板C_and_CPP作者時間14年前 (2011/10/15 02:10), 編輯推噓1(1011)
留言12則, 3人參與, 最新討論串3/3 (看更多)
不好意思 對作業系統不是很懂>< multiprocessor是像多cpu 交給不同的處理器做運算嗎 那multithread是分時而已嗎 還是如何達到好像同步進行 感謝Orz ※ 引述《liquidcrysta (crystal)》之銘言: : Hello people, : Apologize I can only type English for now. : I've been working on image processing and graphics application for a while, : and found that "think parallely" is critical to modern applications. : But I always have a question: : Do you think we should learn multithread coding (which I mean single/multicore) : before getting into parallel coding (which i mean gpgpu/multiprocessor)? : As my littile knowledge in these two fields, : multithread is to utilize the concept of "shared memory" rather than : speeding up by multicores, while parallel computing is intended to speed up : by the power of multiple processors. : I'm interested in how people compare with these two models. -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 124.8.136.215

10/15 02:13, , 1F
你是要講multiprocess"ing"還是multiprocess"or"阿 XD
10/15 02:13, 1F

10/15 02:13, , 2F
要不要你先把thread跟process的區分搞清楚?
10/15 02:13, 2F

10/15 02:14, , 3F
multithread的話corase-grained跟fine-grained都有點
10/15 02:14, 3F

10/15 02:14, , 4F
分時進行的效果 但如果是simultaneous multithreading
10/15 02:14, 4F

10/15 02:14, , 5F
就又不是了....
10/15 02:14, 5F

10/15 02:14, , 6F
啊我好像講得太architecture了 這裡是程式板= =
10/15 02:14, 6F

10/15 02:15, , 7F
XD multiproces
10/15 02:15, 7F

10/15 02:18, , 8F
網路上也查到一些了 把mutuprocessor和multiprocess搞混了
10/15 02:18, 8F

10/15 02:20, , 9F
開兩個播放器 應該就是multiprocess的緣故...可以單核心..
10/15 02:20, 9F

10/15 02:21, , 10F
mutiprocess/thread主要都是分時..
10/15 02:21, 10F

10/15 02:48, , 11F
感覺原PO是想問 MPI vs. THREAD/OPENMP
10/15 02:48, 11F

10/15 02:50, , 12F
個人覺得概念不太一樣,先學那種不衝突。
10/15 02:50, 12F
文章代碼(AID): #1Ec7hvP3 (C_and_CPP)
文章代碼(AID): #1Ec7hvP3 (C_and_CPP)