【发布时间】:2009-04-04 13:56:29
【问题描述】:
我有一段代码循环遍历数组并在其中查找相似且相同的字符串 - 标记它是否唯一。
loop X array for I
( loop X array for Y
(
If X is prefix of Y do. else if x is same length as Y and it's prefix do something.
)
Here is the code to finilize everything for I and corresponding (found/not found) matches in Y.
)
我想让这个双核多线程。据我所知,这是不可能的,但您很可能会有一些想法。
【问题讨论】:
-
那么,有什么问题?
-
如何使它适用于双核,因为它现在只是单线程的。 - 只使用一个核心。