The Free Launch is Back
Posted on April 15th, 2008 at 16:08 by fr3@K

From the main page of MCSTL:

The Multi-Core Standard Template Library (MCSTL) is a parallel implementation of the standard C++ library. It makes use of multiple processors and/or multiple cores of a processor with shared memory. It blends in transparently and there is in principle no change necessary in the program itself.


根據該網站的介紹, MCSTL 是一套與 Standard C++ Library 相容的實作.1 使用 MCSTL, 將可在 client code 使用到 sort, random_shuffle, partition, merge, find, nth_element, partial_sum 以及 for_each 等 STL algorithm 的時候, 得到多核/CPU 平行運算的加速. 可說是多核時代的免費午餐.2 目前 MCSTL 正在被整合進入 GCC 4.3 的 “libstdc++ parallel mode”.

又多了一個使用 STL algorithm 的好理由.

  1. 不過從它的文件看來, MCSTL 不是一套 generic 的 Standard C++ Library 實作, 而像是 patch 過的 libstdc++ []
  2. 關於免費午餐將盡的故事請見 Sutter 的 The Free Lunch Is Over []
del.icio.us:The Free Launch is Back digg:The Free Launch is Back spurl:The Free Launch is Back newsvine:The Free Launch is Back furl:The Free Launch is Back Y!:The Free Launch is Back 黑米共享書籤:The Free Launch is Back 推推王:The Free Launch is Back
Previous Post
« 不是李白也能 C++ «
Next Post
» Virtualization != 虛擬作業系統 »

Zero Comments »

No comments yet.

Comments RSS TrackBack URI

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>