﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>C++博客-大城小魔</title><link>http://www.cppblog.com/momor/</link><description>天下难事，必作于易；天下大事，必作于细</description><language>zh-cn</language><lastBuildDate>Thu, 09 Apr 2026 05:39:13 GMT</lastBuildDate><pubDate>Thu, 09 Apr 2026 05:39:13 GMT</pubDate><ttl>60</ttl><item><title>判别IOS运行平台</title><link>http://www.cppblog.com/momor/archive/2010/08/19/123981.html</link><dc:creator>momor</dc:creator><author>momor</author><pubDate>Thu, 19 Aug 2010 09:05:00 GMT</pubDate><guid>http://www.cppblog.com/momor/archive/2010/08/19/123981.html</guid><wfw:comment>http://www.cppblog.com/momor/comments/123981.html</wfw:comment><comments>http://www.cppblog.com/momor/archive/2010/08/19/123981.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/momor/comments/commentRss/123981.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/momor/services/trackbacks/123981.html</trackback:ping><description><![CDATA[<div>本来这是QQ群里一个朋友的问题，网上查了一下，现在将方法大概整理一下，以便于需要的朋友使用。当然，使用</div><div><br></div><div>UIDevice类，也可以简单的获得到底当前平台是iphone 还是itouch,但是你所获得的信息也就仅限于此了，如果想获得更多的</div><div><br></div><div>硬件平台信息呢？使用sysctlbyname，即可。</div><div><br></div><div>获取当前的平台信息，需要查询hw.machine 值，返回值为以下字符串：</div><div>iPhone1,1 (iphone一代)</div><div>iPhone1,2 (iphone 3G)</div><div>iPhone2,1 (iphone 3Gs)</div><div>iPhone3,1 (Iphone 4)</div><div>iPod1,1 &nbsp; &nbsp; (iPod Touch 1代)</div><div>iPod2,1 &nbsp; &nbsp; (iPod Touch 2代)</div><div>iPod3,1 &nbsp; &nbsp; (iPod Touch 3代)</div><div>i386 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (模拟器)</div><div><br></div><div>使用方法：</div><div><br></div><div>UIDeviceHardware *h=[[UIDeviceHardware alloc] init];</div><div>[self setDeviceModel:[h platformString]]; &nbsp;&nbsp;</div><div>[h release];</div><div><br></div><div>UIDeviceHardware.h 头文件</div><div><br></div><div>//</div><div>// &nbsp;UIDeviceHardware.h</div><div>//</div><div>// &nbsp;Used to determine EXACT version of device software is running on.</div><div><br></div><div>#import &lt;Foundation/Foundation.h&gt;</div><div><br></div><div>@interface UIDeviceHardware : NSObject&nbsp;</div><div><br></div><div>- (NSString *) platform;</div><div>- (NSString *) platformString;</div><div><br></div><div>@end</div><div><br></div><div>UIDeviceHardware.m 实现文件</div><div><br></div><div>//</div><div>// &nbsp;UIDeviceHardware.m</div><div>//</div><div>// &nbsp;Used to determine EXACT version of device software is running on.</div><div><br></div><div>#import "UIDeviceHardware.h"</div><div>#include &lt;sys/types.h&gt;</div><div>#include &lt;sys/sysctl.h&gt;</div><div><br></div><div>@implementation UIDeviceHardware</div><div><br></div><div>- (NSString *) platform{</div><div>&nbsp;&nbsp; &nbsp;size_t size;</div><div>&nbsp;&nbsp; &nbsp;sysctlbyname("hw.machine", NULL, &amp;size, NULL, 0);</div><div>&nbsp;&nbsp; &nbsp;char *machine = malloc(size);</div><div>&nbsp;&nbsp; &nbsp;sysctlbyname("hw.machine", machine, &amp;size, NULL, 0);</div><div>&nbsp;&nbsp; &nbsp;NSString *platform = [NSString stringWithCString:machine];</div><div>&nbsp;&nbsp; &nbsp;free(machine);</div><div>&nbsp;&nbsp; &nbsp;return platform;</div><div>}</div><div><br></div><div>- (NSString *) platformString{</div><div>&nbsp;&nbsp; &nbsp;NSString *platform = [self platform];</div><div>&nbsp;&nbsp; &nbsp;if ([platform isEqualToString:@"iPhone1,1"]) return @"iPhone 1G";</div><div>&nbsp;&nbsp; &nbsp;if ([platform isEqualToString:@"iPhone1,2"]) return @"iPhone 3G";</div><div>&nbsp;&nbsp; &nbsp;if ([platform isEqualToString:@"iPhone2,1"]) return @"iPhone 3GS";</div><div>&nbsp;&nbsp; &nbsp;if ([platform isEqualToString:@"iPhone3,1"]) return @"iPhone 4";</div><div>&nbsp;&nbsp; &nbsp;if ([platform isEqualToString:@"iPod1,1"]) &nbsp; return @"iPod Touch 1G";</div><div>&nbsp;&nbsp; &nbsp;if ([platform isEqualToString:@"iPod2,1"]) &nbsp; return @"iPod Touch 2G";</div><div>&nbsp;&nbsp; &nbsp;if ([platform isEqualToString:@"iPod3,1"]) &nbsp; return @"iPod Touch 3G";</div><div>&nbsp;&nbsp; &nbsp;if ([platform isEqualToString:@"i386"]) &nbsp; return @"iPhone Simulator";</div><div>&nbsp;&nbsp; &nbsp;return platform;</div><div>}</div><div><br></div><div>@end</div><div><br></div><img src ="http://www.cppblog.com/momor/aggbug/123981.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/momor/" target="_blank">momor</a> 2010-08-19 17:05 <a href="http://www.cppblog.com/momor/archive/2010/08/19/123981.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>iPhone OpenGL Speed Tip – Turn Off Thumb Instructions</title><link>http://www.cppblog.com/momor/archive/2010/04/13/112466.html</link><dc:creator>momor</dc:creator><author>momor</author><pubDate>Tue, 13 Apr 2010 09:01:00 GMT</pubDate><guid>http://www.cppblog.com/momor/archive/2010/04/13/112466.html</guid><wfw:comment>http://www.cppblog.com/momor/comments/112466.html</wfw:comment><comments>http://www.cppblog.com/momor/archive/2010/04/13/112466.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/momor/comments/commentRss/112466.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/momor/services/trackbacks/112466.html</trackback:ping><description><![CDATA[<p>Want to boost your iPhone OpenGL app&#8217;s framerate with one checkbox?&nbsp;
It&#8217;s easy; <strong>turn off Thumb instructions</strong>.</p>
<h3>What are Thumb instructions?</h3>
<p>The iPhone uses the <a href="http://www.arm.com/">ARM</a> <a href="http://www.arm.com/products/CPUs/ARM1176.html">1176JZ processor</a>,
and <a href="http://www.arm.com/products/CPUs/archi-thumb.html">Thumb</a>
instructions are <a href="http://infocenter.arm.com/help/topic/com.arm.doc.ddi0301g/ch01s04s02.html">16-bit
versions of common 32-bit ARM instructions</a>.&nbsp; By default, your Xcode
project will compile with <a href="http://infocenter.arm.com/help/topic/com.arm.doc.ddi0301g/Cacbdgdh.html">Thumb
instructions</a>.</p>
<h3>Why use Thumb instructions?</h3>
<p>On <a href="http://en.wikipedia.org/wiki/Embedded_system">embedded
systems</a> like the iPhone (or any system, really, but here
especially), you have to think about the space your app uses.&nbsp; Smaller
instructions mean smaller code in memory and on disk.&nbsp; That&#8217;s a good
thing!&nbsp; However, there&#8217;s a trade-off: <em>performance</em>.</p>
<p>According to <a href="http://developer.apple.com/iPhone/library/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/ApplicationEnvironment/ApplicationEnvironment.html#//apple_ref/doc/uid/TP40007072-CH7-SW62">Apple</a>,
the cost comes from floating-point operations.&nbsp;&nbsp; Ripping out the
GLfloats from your app isn&#8217;t the way to go, so let&#8217;s learn a better way.</p>
<h3>How do I turn off Thumb instructions?</h3>
<p>Here&#8217;s what to do in Xcode:</p>
<ol>
    <li>Open your project</li>
    <li>Choose <strong>Project -&gt; Edit Project Settings</strong></li>
    <li>In the <strong>Project Info</strong> window, choose the <strong>Build
    </strong>tab</li>
    <li>In the search box, type &#8220;<strong>thumb</strong>&#8220;</li>
    <li>You should see a &#8220;<strong>Compile for Thumb</strong>&#8221; setting.&nbsp;
    Uncheck it. (Click image to enlarge.)<br>
    <a href="http://cocoaswirl.com/wordpress/wp-content/uploads/2009/05/compile_for_thumb_option.png"><img style="width: 514px; height: 505px;" alt=""  src="http://www.cppblog.com/images/cppblog_com/momor/compile_for_thumb_option.png"><br></a></li>
    <li>Clean and rebuild your project.</li>
</ol>
<p>That&#8217;s it!&nbsp; If you don&#8217;t have the setting, make sure the Active SDK
is set to <strong>Device</strong>.&nbsp; The setting isn&#8217;t applicable to the <strong>Simulator</strong>.</p>
<h3>What kind of frame rate boost will I see?</h3>
<p>I had improvements of around 20, 30, and 50%.&nbsp; Hopefully you will see
even bigger ones!</p><img src ="http://www.cppblog.com/momor/aggbug/112466.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/momor/" target="_blank">momor</a> 2010-04-13 17:01 <a href="http://www.cppblog.com/momor/archive/2010/04/13/112466.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>重力感应</title><link>http://www.cppblog.com/momor/archive/2009/05/13/82809.html</link><dc:creator>momor</dc:creator><author>momor</author><pubDate>Wed, 13 May 2009 06:10:00 GMT</pubDate><guid>http://www.cppblog.com/momor/archive/2009/05/13/82809.html</guid><wfw:comment>http://www.cppblog.com/momor/comments/82809.html</wfw:comment><comments>http://www.cppblog.com/momor/archive/2009/05/13/82809.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/momor/comments/commentRss/82809.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/momor/services/trackbacks/82809.html</trackback:ping><description><![CDATA[<br><embed src="http://player.youku.com/player.php/sid/XNjQzODQ5ODg=/v.swf" quality="high" width="480" height="400" align="middle" allowscriptaccess="sameDomain" type="application/x-shockwave-flash"></embed><img src ="http://www.cppblog.com/momor/aggbug/82809.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/momor/" target="_blank">momor</a> 2009-05-13 14:10 <a href="http://www.cppblog.com/momor/archive/2009/05/13/82809.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>终于买到了《Unix编程艺术》</title><link>http://www.cppblog.com/momor/archive/2009/04/08/79237.html</link><dc:creator>momor</dc:creator><author>momor</author><pubDate>Wed, 08 Apr 2009 01:48:00 GMT</pubDate><guid>http://www.cppblog.com/momor/archive/2009/04/08/79237.html</guid><wfw:comment>http://www.cppblog.com/momor/comments/79237.html</wfw:comment><comments>http://www.cppblog.com/momor/archive/2009/04/08/79237.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.cppblog.com/momor/comments/commentRss/79237.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/momor/services/trackbacks/79237.html</trackback:ping><description><![CDATA[<a href="http://www.douban.com/subject/1467587/"><img alt="" src="http://www.cppblog.com/images/cppblog_com/momor/s1631790.jpg" width="105" height="141"></a><br><br>简介：<br><br>本书主要介绍了Unix系统领域中的设计和开发哲学、思想文化体系、原则与经验，由公认的Unix编程大师、开源运动领袖人物之一Eric S.
Raymond倾力多年写作而成。包括Unix设计者在内的多位领域专家也为本书贡献了宝贵的内容。本书内容涉及社群文化、软件开发设计与实现，覆盖面
广、内容深邃，完全展现了作者极其深厚的经验积累和领域智慧。<br><br>另据：http://www.huachu.com.cn/2005/2005unix.htm<br><br>作者简介：<br><br>　姜宏，软件工程师，目前从事协同应用平台之设计与开发。技术兴趣包括Windows 驱动程序开发﹑泛型编程。和侯捷、荣耀共同翻译了《C++ Templates 中文版》。<br><br><br>-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------<br>&nbsp;
一直都听说这本书，只是没有机会读过，据说影响力不小，网上对它的评价也是褒贬不一，有人抨击它将Unix文化宗教化，也有人希望能够冲破世俗，从已经使
用30多年的操作系统上窥查恒久的设计哲学。到底我们需要的是什么，大概只有读过这本书以后，才能够去评述。这个世界很浮躁，华丽的充斥着我们，迷失的东
西太多，希望更多的思考角度和方式。<br><br><br><br> <img src ="http://www.cppblog.com/momor/aggbug/79237.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/momor/" target="_blank">momor</a> 2009-04-08 09:48 <a href="http://www.cppblog.com/momor/archive/2009/04/08/79237.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>C/C++ 内存管理算法与实现--第一章：Intel奔腾CPU构架--保护模式 （翻译连载）</title><link>http://www.cppblog.com/momor/archive/2008/12/11/69130.html</link><dc:creator>momor</dc:creator><author>momor</author><pubDate>Thu, 11 Dec 2008 02:16:00 GMT</pubDate><guid>http://www.cppblog.com/momor/archive/2008/12/11/69130.html</guid><wfw:comment>http://www.cppblog.com/momor/comments/69130.html</wfw:comment><comments>http://www.cppblog.com/momor/archive/2008/12/11/69130.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/momor/comments/commentRss/69130.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/momor/services/trackbacks/69130.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 最近很多烦心事，总是让自己开心不起来，不过想想也不是坏事，让自己适应跟烦恼和平相处，平常心去对待。无奈放在现实当中，有时难以下咽，就让它存在吧，习惯它的存在吧<br>中午到711买饭，发现711快餐打菜的员工又将少打菜的策略升级了：“先打素菜（即使不小心打多了也比荤菜多了划算），然后将素菜抹平，再素菜的基础上镀上一层荤菜，这样一来即使荤菜比正常的量少，也不太容易看出来”，<br>我下次也升级！！！试试先要荤菜...&nbsp;&nbsp;<a href='http://www.cppblog.com/momor/archive/2008/12/11/69130.html'>阅读全文</a><img src ="http://www.cppblog.com/momor/aggbug/69130.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/momor/" target="_blank">momor</a> 2008-12-11 10:16 <a href="http://www.cppblog.com/momor/archive/2008/12/11/69130.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>C/C++ 内存管理算法与实现--第一章：Intel奔腾CPU构架--实模式 （翻译连载）</title><link>http://www.cppblog.com/momor/archive/2008/12/06/68700.html</link><dc:creator>momor</dc:creator><author>momor</author><pubDate>Fri, 05 Dec 2008 16:07:00 GMT</pubDate><guid>http://www.cppblog.com/momor/archive/2008/12/06/68700.html</guid><wfw:comment>http://www.cppblog.com/momor/comments/68700.html</wfw:comment><comments>http://www.cppblog.com/momor/archive/2008/12/06/68700.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.cppblog.com/momor/comments/commentRss/68700.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/momor/services/trackbacks/68700.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 这几天，以前同事出差到北京，又对时间感慨一番，一切都在变,唯独不变的是感觉自己一直在混日子<br>不说了，继续我们的内容^^&nbsp;&nbsp;<a href='http://www.cppblog.com/momor/archive/2008/12/06/68700.html'>阅读全文</a><img src ="http://www.cppblog.com/momor/aggbug/68700.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/momor/" target="_blank">momor</a> 2008-12-06 00:07 <a href="http://www.cppblog.com/momor/archive/2008/12/06/68700.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>C/C++ 内存管理算法与实现--第一章：地址线和总线 （翻译连载）</title><link>http://www.cppblog.com/momor/archive/2008/11/29/68120.html</link><dc:creator>momor</dc:creator><author>momor</author><pubDate>Fri, 28 Nov 2008 17:25:00 GMT</pubDate><guid>http://www.cppblog.com/momor/archive/2008/11/29/68120.html</guid><wfw:comment>http://www.cppblog.com/momor/comments/68120.html</wfw:comment><comments>http://www.cppblog.com/momor/archive/2008/11/29/68120.html#Feedback</comments><slash:comments>3</slash:comments><wfw:commentRss>http://www.cppblog.com/momor/comments/commentRss/68120.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/momor/services/trackbacks/68120.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 我们把DRAM中的每个字节的唯一数值标识称之为地址，就像街区中的房屋一样。地址是一个整型值。内存中的第一个字节的地址为0。靠近0地址的内存区域称之为内存底端或者低位内存。靠近内存末端的内存区域称之为高位内存。处理器的对物理内存的寻址能力，称之为处理器的物理地址空间。（见图1.3）&nbsp;&nbsp;<a href='http://www.cppblog.com/momor/archive/2008/11/29/68120.html'>阅读全文</a><img src ="http://www.cppblog.com/momor/aggbug/68120.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/momor/" target="_blank">momor</a> 2008-11-29 01:25 <a href="http://www.cppblog.com/momor/archive/2008/11/29/68120.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>C/C++ 内存管理算法与实现--第一章：内存层次结构 （翻译连载）</title><link>http://www.cppblog.com/momor/archive/2008/11/28/68080.html</link><dc:creator>momor</dc:creator><author>momor</author><pubDate>Fri, 28 Nov 2008 08:21:00 GMT</pubDate><guid>http://www.cppblog.com/momor/archive/2008/11/28/68080.html</guid><wfw:comment>http://www.cppblog.com/momor/comments/68080.html</wfw:comment><comments>http://www.cppblog.com/momor/archive/2008/11/28/68080.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/momor/comments/commentRss/68080.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/momor/services/trackbacks/68080.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要:      当有人们提到“内存”这个词的时候，往往都与主板上的专门提供数据存储能力的芯片联系起来。通常将这类提供存储能力的芯片称之为随机存储器（RAM），主内存（main memory），和主存储器（primary storage）.回首计算机的铁器时代，大型机大行其道的时候，称之为核心部件（core）。这些芯片提供的存储只是临时的，也就是说，存储在这些芯片里的数据只要当电源被关闭以后也随之消失。&nbsp;&nbsp;<a href='http://www.cppblog.com/momor/archive/2008/11/28/68080.html'>阅读全文</a><img src ="http://www.cppblog.com/momor/aggbug/68080.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/momor/" target="_blank">momor</a> 2008-11-28 16:21 <a href="http://www.cppblog.com/momor/archive/2008/11/28/68080.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>C/C++ 内存管理算法与实现--第一章：内存管理机制 （翻译连载）</title><link>http://www.cppblog.com/momor/archive/2008/11/27/67984.html</link><dc:creator>momor</dc:creator><author>momor</author><pubDate>Thu, 27 Nov 2008 06:03:00 GMT</pubDate><guid>http://www.cppblog.com/momor/archive/2008/11/27/67984.html</guid><wfw:comment>http://www.cppblog.com/momor/comments/67984.html</wfw:comment><comments>http://www.cppblog.com/momor/archive/2008/11/27/67984.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.cppblog.com/momor/comments/commentRss/67984.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/momor/services/trackbacks/67984.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 从今天开始我会逐步将《Memory Management: Algorithms and Implementation in C/C++》这一经典书籍翻译，由于翻译水平十分有限，在此恭候各位的瓦片，砖头^^&nbsp;&nbsp;<a href='http://www.cppblog.com/momor/archive/2008/11/27/67984.html'>阅读全文</a><img src ="http://www.cppblog.com/momor/aggbug/67984.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/momor/" target="_blank">momor</a> 2008-11-27 14:03 <a href="http://www.cppblog.com/momor/archive/2008/11/27/67984.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>基本议题：并行，并发，和分布</title><link>http://www.cppblog.com/momor/archive/2008/11/13/66868.html</link><dc:creator>momor</dc:creator><author>momor</author><pubDate>Thu, 13 Nov 2008 15:50:00 GMT</pubDate><guid>http://www.cppblog.com/momor/archive/2008/11/13/66868.html</guid><wfw:comment>http://www.cppblog.com/momor/comments/66868.html</wfw:comment><comments>http://www.cppblog.com/momor/archive/2008/11/13/66868.html#Feedback</comments><slash:comments>3</slash:comments><wfw:commentRss>http://www.cppblog.com/momor/comments/commentRss/66868.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/momor/services/trackbacks/66868.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 本文的诞生也不过得源于在我曾经开始谈论关于π演算 (π-calculus)时的帖子中所提出的问题，但是我认为这的确是有趣到足以置顶的帖子。如果听见某人谈论关于计算机和软件时，有三个词常常会出现在你的耳边：并行(parallel),并发(concurrent)和分布(distributed).乍一听，它们似乎指代的是同一类事物，但是实际上，它们是三类不同的事物，它们之间的差异举足轻重。<br>它们近似相通的地方是，都是描述计算机硬件和软件组成的系统体系结构，以达到同一时间处理多项任务的目的。不同的则是它们的实现方法及其原因。<br><br>&nbsp;&nbsp;<a href='http://www.cppblog.com/momor/archive/2008/11/13/66868.html'>阅读全文</a><img src ="http://www.cppblog.com/momor/aggbug/66868.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/momor/" target="_blank">momor</a> 2008-11-13 23:50 <a href="http://www.cppblog.com/momor/archive/2008/11/13/66868.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>