![]() |
| | #1 |
| Registered User Join Date: Jun 2009 Location: Bangalore,India
Posts: 21
| 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 |
| krishnampkkm is offline | |
| | #2 |
| Kiss the monkey. 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 | |
| | #3 |
| Cat without Hat 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 | |
![]() |
| Thread Tools | |
| Display Modes | |
|
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 |