[ttongfly@RealSkulls cstudy]$ cat > thread1.c
/*
Filename : thread1.c
Subject : 쓰레스 생성
Writer : ttongfly@ttongfly.net 2003. 12. 26
Homepage : http://ttongfly.net
*/
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <pthread.h>
void *thread_function(void *arg);
int main(int argc, char **argv)
{
int state;
pthread_t t_id;
void *t_return;
// pthread_create(쓰레드ID, 쓰레드 특성값, 쓰레드 함수, 함수에 넘겨줄 인자값);
state = pthread_create(&t_id, NULL, thread_function, NULL);