Sampled Simulation For Multithreaded Processors