·2,447,543篇论文数据,部分数据来源于NoteExpress
通常,一种有用的方法是,向“计数字符串”函数传递比缓冲区大小小一的长度,然后将零显式赋给缓冲区中的最后一个字符。
In general, one useful approach is to pass a length to the 'counted string' function one smaller than the size of the buffer and then explicitly assign zero to the last character in the buffer.
但是在处理器间传递信息比在某一处理器上进行运算要费时得多,这样下来,进行平行运算的优势就没有了。
But passing messages between cores is much more time-consuming than executing computations on a given core, and it ends up eating into the gains afforded by parallel execution.
或许您会想到,这应该比像下面这样传递整型代码简单。
Perhaps it occurred to you that it would be simpler to pass in the int codes like this.
应用推荐