GeekInterview.com
Series: Subject: Topic:
Question: 4 of 267

Can time delay be generated in C through loops? If yes,how?

Asked by: Tapas Mallick | Member Since Aug-2012 | Asked on: Aug 19th, 2012

View all questions by Tapas Mallick

Showing Answers 1 - 1 of 1 Answers
k.raghu06

Answered On : Oct 30th, 2012

View all answers by k.raghu06

Yes, delay can be produced using the loops. but the delay cannt be same on all processors.
That means, each processor shall have its own speed of executing an instruction. hence the execution speed influence the delay value.

Same code with loops produce delay as x msec on 16 bit processor, but the same piece code produce Y msec of delay on 32 bit processors. sometimes same 16 bit processors also produce different delays. it mainly contain the clock frequencies ( internally relate to crystal frequencies).

  
Login to rate this answer.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.