看到一則震驚的消息(關於cpu的)

hwh wrote:
這種問題應該是去怪程式設計師不長進而不是怪世界進步太快這個新聞怎麼看都是在牽拖這個記者應該訪問的是一個程度不高的程式設計師...(恕刪)


這裡面真的有複雜的技術困難,現在還沒有突破。說程式設計師程度不高也行,但是程度高到可以把一般普通程式寫成好好利用 6, 8, 16-1024 核心的人,應該也還沒出生。

建議可以讀讀之前我與其他幾位討論的部分。
平行運算的技術已經發展了很多年了我並不覺得可以好好運用的人還沒出生再說電腦的發展非常的快並且絕對不會停止,一個程式設計師永遠覺得很難很複雜那就等著被淘汰了
敗與不敗之間
我想到一個例子

我在現實的生活中 有四台電腦 (想像成四核)

一台家庭上網用 一台下載動物機 一台工作用 一台測試機

四台一起工作的機會 好像很少

所以呢 要資源應用

當沒工作沒上網的時候 四台一起下載

當上網看網頁的時候 其它三台下載

當工作的時候 也是其它三台下載

當測試的時候 一台上網打發時間 其它兩台下載

當沒工作 沒下載的時候 其它兩台上網????<---頭殼秀逗了

當沒下載的時候 四台拿來工作???<----我瘋了 別理我

難怪說平行程式 那麼不好寫

發揮一下想像力吧 呵呵

hwh wrote:
一個程式設計師永遠覺得很難很複雜那就等著被淘汰了


那麼應該叫intel跳下來寫, 馬上把微軟幹掉才對
多核心根本好幾年前就出現雙cpu了, 根本不是什麼大發明
intel厲害的地方還是在他的行銷
不然現在大家還是用p4用的爽歪歪的

----
電腦這種只會處理01的機器, 實在是沒什麼
重要的是他的速度 時脈 這才是他厲害的地方,
就是速度很快, 事實上這才是CPU王道.
要是現在時脈可以拼到1000G, 搞什麼多核心幹什麼?

就是cpu已經玩不下去了 時脈玩不下去 所以玩玩多核心,
事實上也很有限. 搞到8核要幹什麼?

我本身不是資工畢業(景觀),今年考上資工研究所
但我現在卻是在大雅手機廠做程式的撰寫

我的看法是,基本上「OS」作業系統仍然是輪循式的處理各種「程序」,而「程序」中包含許多的「執行緒」
所以要先知道何謂「程序」,和「執行緒」
在Windows 工作管理員中「處理程序」中就記錄著許多著「程序」,而這些「程序」是一一排對等後著被 CPU 執行, CPU 一次也只能處理一個「程序」,可以調整優先權,但此「程序」被 CPU 排班的次數多一些。
將「程序」一開始進入 CPU 被處理時被分成許多的「執行緒」,這時候便可以開始發揮多核心的效果了,多個「執行緒」便在不同的 CPU內執行,達到可以彼此共享記憶體,等到這一個 CPU 執行週期結束後,將這所有的結果及狀態儲存起來,將執行權交由下一個「程序」處理。幾個「程序」不斷的輪流執行稱為「輪循」。
「程式」的執行接需交由「作業系統」去載入至記憶體轉為「程序」去執行,而非程式直接就能執行。
Microsoft Windows 的機制為 輪循 + 優先權 的 CPU 排班方式。
所以多核心一般與「程式」較無相關,除非是較低階的程式,而是與程式執行的平台較為相關。

這也就是為什麼執行的程式有支援多核心的原因了
一、必須共享記憶體
二、必須更切為更小的執行單位
三、必須要提供多核心的平台

以上提出我個人小小的見解,供各位參考。
多核心好壞,爽度和實際的使用需求,我想也只有使用者最知道了。
好吧我問一個實際的問題 我要玩複雜的3D遊戲 Q6600好像不夠力了無法超到4G
那我該升級Q9550還是E8600
是不是現階段2核心比較實際一點
請問喔...
那現階段4核心作用是甚麼=可以開一個遊戲 外加MEDIA PLAYER 聽音樂再加POWERDVD播放
再加一個防毒軟體 這樣
會比同時脈的2核心快嗎
hwh wrote:
平行運算的技術已經發展了很多年了我並不覺得可以好好運用的人還沒出生再說電腦的發展非常的快並且絕對不會停止,一個程式設計師永遠覺得很難很複雜那就等著被淘汰了


老弟
我不知道您會不會寫程式
可是您的comment真的太武斷了
舉個簡單的例子
有一個文件同時要給兩個不同人讀寫
而且這兩個人相互不能造成影響 (例如約定誰先做 或者誰鎖定誰)
這麼簡單的事情就可以整死一堆人了
照您的定義
全世界99%以上的程式設計師可以回家吃自己了


下面文章應該會給你新的希望 ,new complier tools.....
原始文章於下列網址
http://www.windowsfordevices.com/news/NS2880178526.html

At this week's Intel Developer Forum (IDF), Intel announced a forthcoming beta of new tools designed to optimize software for multicore processors. Intel Parallel Studio will help Microsoft Visual Studio developers design, code, debug, and tune applications to use parallel programming techniques, according to the company.

(Click here for a larger view of Intel's Parallel Studio)

Today, the vast majority of Intel processors have two or four cores, with even more on the way. Yet, as the company concedes in a FAQ released to promote Parallel Studio, few applications outside the specialized world of technical computing take any advantage of multiple cores. "There is an opportunity for Intel to help by bringing Intel's parallelism experience to more developers in the form of products to complement and extend Microsoft Visual Studio for parallelism," the company says.

Parallel Studio will be a suite of five plug-ins for Visual Studio, designed for developers who write some or all of their software in Microsoft's Visual C++, says Intel. The plug-ins are touted as benefiting developers who want to take advantage of multicore CPUs, but who are also concerned about backward compatibility.

The plug-ins, as described by Intel, are:
Parallel Composer, which speeds software development incorporating parallelism with a C/C++ compiler, comprehensive threaded libraries, and support for a "broad array" of programming models


Parallel Inspector, a "proactive bug finder" that adds reliability, detecting hard-to-find threading errors in multi-threaded C/C++ Windows applications, and doing root-cause analysis for defects such as data races and deadlocks


Parallel Amplifier, which assists in fine-tuning parallel applications for optimal performance by helping find unexpected serialization that limits scaling


Parallel Advisor, which helps a developer understand where to add parallelism to existing source code, shows the consequences of decisions, and helps resolve any conflicts
The plug-ins can be used separately or together, says Intel. They not only require Visual Studio, but are fully interoperable with its compiler, libraries, and debugger, the company adds.

According to Intel, the Parallel Composer plug-in will support the OpenMP 3.0 API (application programming inteface), lambda functions, auto-vectorization, spawn, and threaded libraries. A key component of Parallel Composer is said to be Intel's Threading Building Blocks (TBB). Rev'd to version 2.1 in July, TBB is a cross-platform, portable library that comprises a 120KB runtime combined with "template libraries" linked in at compile time, says Intel.

Addressing the difference between TBB and Parallel Composer, Intel says Parallel Composer "will cater to Windows C++ developers focused on new parallel implementations of their software using Microsoft Visual Studio. Features such as support for Linux and Mac OS, Fortran, as well as advanced levels of optimizations and optimizer controls, will remain unique to the existing compiler products."

Further information

The Parallel Composer, Parallel Inspector, and Parallel Amplifier components of Parallel Studio will be offered via a free beta program that begins in November, and will run through May 2009, Intel says. The Parallel Advisor will enter beta "later in 2009."

To obtain the beta products as soon as they are ready, receive product information, and participate in related online forums, registration is required, here. Qualifying for the beta requires current use of Microsoft's Visual Studio 2005 or 2008, not including Express editions, C/C++, and Windows XP or Vista.
==好APP與好朋友分享==
看起來不錯喔,可惜最近的工作都在 Java 相關,暫時用不著。明年看有沒有機會碰到。
woulinwise wrote:
下面文章應該會給你新的希望 ,new complier tools.....
原始文章於下列網址
http://www.windowsfordevices.com/news/NS2880178526.html

結果呢
silver bullet
文章分享
評分
評分
複製連結
請輸入您要前往的頁數(1 ~ 16)

今日熱門文章 網友點擊推薦!