【发布时间】:2012-11-04 12:27:02
【问题描述】:
我正在尝试创建一个线程数组。在 Linux 中,我是这样做的:
pthread_t thr[MAXCONNECTIONS];
在 Windows 上,我找不到任何替代品。无论如何要创建一个数组或替代它的东西吗?
【问题讨论】:
-
为什么不在 Windows 上也使用 pthreads。似乎有一个港口。
-
我不知道。我认为您必须包含进程,然后使用 beginthread 和 endthread ...
-
@Tom:Windows 上的 pthreads 现在可用了吗?在图书馆?还是 Windows 支持它们?
标签: c windows multithreading