Windows下创建进程和线程(Console下使用API)[18]

[入库:2006年2月23日] [更新:2007年3月24日]

本文简介:

/*测试程序2

       创建N个随机线程的随机实验.

       命令行输入参数:

       test threadNo runSecs

*/

#include <windows.h>

#include <math.h>

#include <stdio.h>

#include <stdlib.h>

#include <time.h>

 

#define N 5

#define Type float

 

static int runFlag=TRUE;

DWORD WINAPI threadWork(LPVOID threadNo);

int parseArgToInt(char* inNumChar);

Type eRandom(int upLimit);

本文关键:Windows下创建进程和线程(Console下使用API)
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top