A simple framework to run a process in multiple threads