Generic programming resources

Processes and Threads

Linux verkar använda en 1:1 thread implementation som även OpenBSD har gått över till. Både Linux och OpenBSD har tidigare haft en N:1 modell dvs. många user space trådar i samma process.

Greenlets och goroutines är exempel på user threads (N:1) som implementeras av respektive kompilator.

"A goroutine has a simple model: it is a function executing concurrently with other goroutines in the same address space. It is lightweight, costing little more than the allocation of stack space. And the stacks start small, so they are cheap, and grow by allocating (and freeing) heap storage as required."