Thread pool with one thread only

Signed-off-by: Daniele Ricci <daniele.athome@gmail.com>