A Pipeline Simulator with Multithreading Support