+ tid_generation = syscall(__NR_gettid); Anything involving syscall() screams non-portable. Is there a pthread interface you can use instead? pthread_self() maybe? -- -Alan Coopersmith- alan.coopersmith at sun.com Sun Microsystems, Inc. - X Window System Engineering