eal: add function to create control threads