Ok, so the goal: Create a system that could handle offloaded tasks from multiple frontends. Tasks that don't need to happen immediatly and some that even need to wait a few minutes to happen.
My solution: A daemon. It starts up, forks off, does all the needed "Daemon" startup items. Launches 2 worker threads that immediatly go to sleep on a pthread_cond_wait, 1 "timing" thread that also goes to sleep on a pthread_cond_wait and a networking thread that binds to a port and listens for incoming connections.