Simple function to create process threads