Multithreaded factory simulation