multiprocess multithreading prototype