void * aaa(void *param) { int i; for (i = 0; i < INT_MAX; i++); return NULL; }
int main(void) { int i; pthread_t thr[NUM_THR]; for (i = 0; i < NUM_THR; i++) pthread_create(thr+i, NULL, aaa, NULL); for (i = 0; i < NUM_THR; i++) pthread_join(thr[i], NULL); return 0; }
355 :何が何でも Solaris IA版存続を願う会2ch支部長 :02/05/27 09:18
http://www.sun.com/solarisdvd >Act now and get your FREE copy of the Solaris 9 Operating Environment >(offer good while quantities last). > >To receive your FREE copy of the Solaris 9 Operating Environment on a DVD, >please fill out the information below. > : > : >* Which version of the new Solaris 9 Operating Environment would you prefer? >○SPARC™ platform ○Intel