title: How to continue one thread at a time when debugging a multithreaded program in GDB?
body: <p>I have a program which uses two threads. I have put the break point in both the threads. While running the program under gdb I want to switch between the threads and make them run.
  (thread t1 is active and running and thread t2; when paused on the breakpoint. I want to stop T1 running and run the T2).</p>
  
  <p>Is there any way that I can schedule the threads in gdb? </p>