Multithreaded Adaptive Optics Simulator