eal: new function to create control threads