Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

As a note, you can click on the time stamp of the child post, and respond directly there.

> since I can't reply to the child I'll just say this: I don't like the math you used, I feel like it's making a point that shouldn't be made in a place where it doesn't need to be made. Of course it's going to be dog slow if you're busy waiting. Wtf? I guess I will just leave it at that.

The entire post is about reducing the CPU time necessary to receive data from an external interface, like a serial port. The following paragraph states:

> Instead of making our CPU waste all of this time waiting around, we allow the hardware to manage the simple sending and receiving process, allowing our CPU to either process other important tasks, or go into sleep mode, saving power or battery life.

The intent for this example was to illustrate the difference between busy waiting and DMA. It is not uncommon on microcontrollers to only have a FIFO depth of one byte, which means if you aren't using interrupts, DMA, or threading, you will lose that data.



Thanks for the heads up on the reply.

And this is why I shouldn't critique year old blog posts before 6am, lol.

I still don't care for the way that section was phrased, but I have a rather pedantic background in telephony and serial ports.

My apologies.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: