Thread: overlapped I/O and multi threading

  1. #1
    Registered User
    Join Date
    Jun 2009

    overlapped I/O and multi threading


    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
    "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
    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!

    "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, 08:32 AM
  3. starting to learn multi threading
    By hanhao in forum C++ Programming
    Replies: 2
    Last Post: 06-09-2004, 01:44 PM
  4. Multi Threading
    By IceBall in forum C Programming
    Replies: 7
    Last Post: 07-13-2003, 03:01 PM
  5. multi file i/o
    By Screamager in forum C Programming
    Replies: 10
    Last Post: 02-25-2002, 03:21 PM