overlapped I/O and multi threading

This is a discussion on overlapped I/O and multi threading within the C++ Programming forums, part of the General Programming Boards category; hii After reading some articles I'm getting confused with these topics.... Actually both are same....? both are using for same ...

  1. #1
    Registered User
    Join Date
    Jun 2009
    Location
    Bangalore,India
    Posts
    24

    overlapped I/O and multi threading

    hii

    After reading some articles I'm getting confused with these topics....

    Actually both are same....? both are using for same purpose ?

    Which is the fastest one .?




    what is the difference between overlapped I/O and multi threading



    ----------------------
    with regards

  2. #2
    Kiss the monkey. CodeMonkey's Avatar
    Join Date
    Sep 2001
    Posts
    907
    "overlapped I/O" is Microsoft's version of "asynchronous I/O," which is sending/receiving data transmissions and then not having the calling process wait for them to complete.
    Multithreading is the use of more than one (possibly) independent parts of a program simultaneously. Asynchronous I/O probably can be implemented using threads, because something has to complete the transmission while the caller moves on, right?
    Anyway, there's my semi-informed explanation.
    "If you tell the truth, you don't have to remember anything"
    -Mark Twain

  3. #3
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,893
    Threads are a tool with very broad applications. Waiting for I/O to complete while the main thread continues is one of them.

    Asynchronous I/O has very narrow applications, specifically waiting for I/O to complete while the main thread continues. On the other hand, it's better at them than threads. It's also generally easier and less error-prone to use.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Multi Threading
    By beon in forum C Programming
    Replies: 5
    Last Post: 12-04-2006, 09:21 PM
  2. Replies: 6
    Last Post: 06-02-2006, 09:32 AM
  3. starting to learn multi threading
    By hanhao in forum C++ Programming
    Replies: 2
    Last Post: 06-09-2004, 02:44 PM
  4. Multi Threading
    By IceBall in forum C Programming
    Replies: 7
    Last Post: 07-13-2003, 04:01 PM
  5. multi file i/o
    By Screamager in forum C Programming
    Replies: 10
    Last Post: 02-25-2002, 03:21 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21