mertside / thread_trampoline_demo

Some ideas to work on...

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Samples for implementing a Thread Trampoline

Some samples on the idea of implementing pthreads.

Thread Trampoline

Algorithm: Look at a memory address during spin-wait;

if zero, sleep;

if not, go to this address (it contains a function pointer).

Thread Pools

Implements a queue of tasks to be executed by threads.

About

Some ideas to work on...


Languages

Language:C 92.5%Language:Assembly 6.4%Language:Makefile 1.1%