上一页 1 ··· 5 6 7 8 9

2013年8月25日

Introduction to Parallel Computing

摘要: Parallel Computing并行计算是同时利用多种计算资源来解决可计算问题:1.利用多个处理器。2.一个问题可以被分解为多个离散的、能并发解决的部分。3.每个离散部分可以被进一步分解为一系列指令。4.各个离散部分之间的指令可以同时在不同的处理器上执行。5.使用控制/协同机制。Concepts and Terminology1.Supercomputing and HPC(High Performance Computing)2.Node: comprised of multi-processors/CPUs/cores, memory, network interface etc.3. 阅读全文

posted @ 2013-08-25 01:23 Persistence 阅读(386) 评论(0) 推荐(0)

2013年5月18日

C++中的名字隐藏之<C++编程思想>

摘要: <C++编程思想>第14.5小节中提到了名字隐藏,感觉挺有意思,在这里以自己的语言叙述如下。假如有如下的基类Base,具体定义如下: 1 class Base { 2 public: 3 4 int f() const { 5 std::cout << "Base::f()" << std::endl; 6 } 7 8 int f(const std::string& str) { 9 std::cout << "Base::f(string) " << str << s.. 阅读全文

posted @ 2013-05-18 15:20 Persistence 阅读(313) 评论(0) 推荐(0)

2013年5月15日

C++中的虚函数分析(1)

摘要: 下面的几个问题实际上是准备找工作过程中遇到的,但是一直迟迟没有做出相应的思考。一.首先这里要提出一个问题,怎样才能获取虚函数表指针的存储地址、虚函数表指针的值、虚函数表的存储地址以及虚函数表中存储的虚函数地址?例如,有如下的代码段:class Base { public: virtual int fun1() { std::cout << "Base::fun1()" << std::endl; } virtual int fun2() { std::cout << "Base::fun2()" << st 阅读全文

posted @ 2013-05-15 15:37 Persistence 阅读(198) 评论(0) 推荐(0)

上一页 1 ··· 5 6 7 8 9

导航