1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2013
    Rep Power

    USB data receiving


    Imagine i have 3 devices each one connect by usb, and they are sending information continuously.
    Now, i've got 3 threads, one for each port, to deal with the information i receive.

    Is it possible that i may loose some bytes?
    If some, is there any way to make this a little more "real time"?

    thank you
  2. #2
  3. Contributed User
    Devshed Specialist (4000 - 4499 posts)

    Join Date
    Jun 2005
    Rep Power
    The USB hardware and kernel driver will do enough to make sure you see a reliable link at your userspace code layer.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper

IMN logo majestic logo threadwatch logo seochat tools logo