堆管理的实现过程十分复杂,面对程序内存分配变化莫测的情况,堆管理需要成熟的算法去提升请求的响应速度与内存利用率。
Heap management is complex, requiring sophisticated algorithms that strive for speed and efficient memory usage in the face of our programs' chaotic allocation patterns.
并行编程并非仅仅是个新的程序库或是新的语言特性集,而是全新的设计与编程方式,通常需要使用新的算法。
Parallel programming is not just a new library or a new set of language features. It is a new way of designing and programming, and often requires new algorithms.
由于已经找到 PPE 需要拷贝多少项数据,SPE 程序现在可以分配本地存储空间,将项目读入这段存储空间(使用与前面相同的代码),然后执行算法(如上所示)。
Having found out how many items the PPE needs copied, the SPE program can allocate local storage, read the items in (using the same code as before), and then perform its algorithm, reviewed above.
应用推荐