How do doctors stay awake for 24+ hours and still be able to function fine? My teacher who is also a Dr. Came from working a grave yard shift then teaching our 8 hr class followed by another 5 hr class and toping it all off by heading to the hospital for another grave yard shift. he still functions fine. I'm wondering how in the world doctors do it?