Alle boeken

Professioneel

Apps Over Coach Inloggen Begin met lezen

Computer Science · Begrippenlijst

Wat is Thread?

Definition 15.1 University Computer Science — Year 2 · Hoofdstuk 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.

Lees in het hoofdstuk →