C Board  

Go Back   C Board > General Programming Boards > C++ Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 06-22-2009, 04:42 AM   #1
Registered User
 
Join Date: Jun 2009
Location: Bangalore,India
Posts: 21
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
krishnampkkm is offline   Reply With Quote
Old 06-22-2009, 01:03 PM   #2
Kiss the monkey.
 
CodeMonkey's Avatar
 
Join Date: Sep 2001
Posts: 809
"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
CodeMonkey is offline   Reply With Quote
Old 06-22-2009, 03:27 PM   #3
Cat without Hat
 
CornedBee's Avatar
 
Join Date: Apr 2003
Posts: 8,433
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
CornedBee is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Multi Threading beon C Programming 5 12-04-2006 09:21 PM
Singleton C++ Class - How to avoid mem leak in multi threading molus C++ Programming 6 06-02-2006 08:32 AM
starting to learn multi threading hanhao C++ Programming 2 06-09-2004 01:44 PM
Multi Threading IceBall C Programming 7 07-13-2003 03:01 PM
multi file i/o Screamager C Programming 10 02-25-2002 03:21 PM


All times are GMT -6. The time now is 03:00 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC2

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