Simultaneous Write and Read?

Discussion in 'C' started by chico1st, Jun 21, 2007.

  1. chico1st

    chico1st New Member

    Jun 20, 2007
    Likes Received:
    Trophy Points:
    (Im programming in C)
    I have a card in my computer which takes readings.

    The card has Direct Memory Access and it has 2 chucks of onboard memory.

    When you take readings they read into the onboard memory. However I need to take more readings than fit into the onboard memory.

    (Here's the question)
    Is it possible to read data into one buffer while writing data to the harddrive from the other buffer?

    I can't figure out if this is possible because I cant make my C program do 2 things at once as far as I know.
  2. DaWei

    DaWei New Member

    Dec 6, 2006
    Likes Received:
    Trophy Points:
    Semi-retired EE
    Texan now in Central NY
    Home Page:
    First, read the specs for your device.

    Second, multiple operations don't have to be simultaneous if you can do them fast enough sequentially. Interleaving. Learn about multiple processes and multiple threads on systems with single and multiple processors and cores.

    These things are not a feature of the C language. They have to be supported by the implementation and implementation-specific extensions.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice