Todos os livros

Profissional

Apps Sobre Coach Entrar Começar a ler

Computer Science · Glossário

O que é Thread?

Definition 15.1 University Computer Science — Year 2 · Capítulo 15 — Threads and Synchronisation

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.

Ler no capítulo →