I was looking around the time module. The time.sleep(no_of_seconds) sleeps the program for no_of_seconds seconds.
I don't think this is busy wait. It must be scheduling the process at a later time. Just curious of how this is working.! :)
techie1991
26
Junior Poster in Training
Recommended Answers
Jump to PostYou can look in the source code of timemodule.c in the python source. In linux, this is done by calling select() with NULL arguments.
All 4 Replies
Gribouillis
1,391
Programming Explorer
Team Colleague
techie1991
26
Junior Poster in Training
Gribouillis
1,391
Programming Explorer
Team Colleague
techie1991
26
Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.