1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Simultaneous Write and Read?

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

  1. chico1st

    chico1st New Member

    Joined:
    Jun 20, 2007
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    0
    (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

    Joined:
    Dec 6, 2006
    Messages:
    835
    Likes Received:
    5
    Trophy Points:
    0
    Occupation:
    Semi-retired EE
    Location:
    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