8.3 补充练习(三)

set_stack.c

关键词:线程堆栈

#include 
#include 
#include 
#define NTHREADS	8
#define ARRAY_SIZE      1000 * 1000

void *Hello(void *threadid)
{
    double A[ARRAY_SIZE];
    int i; 
    long tid;

    tid = (long)threadid;
    sleep(3);
    for (i=0; i

你可能感兴趣的:(c语言,Pthreads)