A thread is one sequence of execution inside a process: it has its own registers, program counter and stack, and shares with the other threads of the process everything else, its memory, its open files, its signal handlers. pthread_create(&t, NULL, f, arg) starts a thread that runs f(arg); pthread_join(t, NULL) waits for it to end.
Computer Science · Glosario