graphs of thread switch