Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c++ > #15506
| From | Nobody <nobody@nowhere.com> |
|---|---|
| Subject | Re: Is there (semi-) portable IO-Completion-Port-like functionality in C++ land? |
| Date | 2012-04-22 03:17 +0100 |
| Message-Id | <pan.2012.04.22.02.17.22.556000@nowhere.com> |
| Newsgroups | comp.lang.c++ |
| References | <9cfd1d2a-8b1e-47b3-84b0-7de22dadcdcc@b14g2000vbz.googlegroups.com> <jmq4au$21h$1@dont-email.me> <62c8871a-a172-46c2-9722-daf155849fdb@c28g2000vbu.googlegroups.com> <jmsp40$la$1@dont-email.me> <62de796b-165b-4bff-baef-2158c9df0e4d@i18g2000vbx.googlegroups.com> |
| Organization | Zen Internet |
On Fri, 20 Apr 2012 19:53:17 -0700, K. Frank wrote: > Why doesn't linux offer the equivalent of IO Completion Ports? The pthreads API doesn't include thread pools, which would be a prerequisite. There are a number of third-party thread pool libraries. Once you have that, I would have thought that implementing completion ports would be straightforward enough. OTOH, async I/O is often unnecessary if you're using threads (likewise for non-blocking I/O or select/poll). You can normally just use blocking I/O and threads, which has the advantage of working with files (accessing files never "blocks", even if there's a delay) as well as demand-paging of the process' code and data. On Linux, the POSIX aio API is implemented by glibc in user-space using threads.
Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Is there (semi-) portable IO-Completion-Port-like functionality in C++ land? "K. Frank" <kfrank29.c@gmail.com> - 2012-04-18 16:46 -0700
Re: Is there (semi-) portable IO-Completion-Port-like functionality in C++ land? Christopher Pisz <someone@somewhere.net> - 2012-04-19 17:41 -0500
Re: Is there (semi-) portable IO-Completion-Port-like functionality in C++ land? "K. Frank" <kfrank29.c@gmail.com> - 2012-04-20 10:43 -0700
Re: Is there (semi-) portable IO-Completion-Port-like functionality in C++ land? Christopher Pisz <someone@somewhere.net> - 2012-04-20 17:48 -0500
Re: Is there (semi-) portable IO-Completion-Port-like functionality in C++ land? "K. Frank" <kfrank29.c@gmail.com> - 2012-04-20 19:53 -0700
Re: Is there (semi-) portable IO-Completion-Port-like functionality in C++ land? Nobody <nobody@nowhere.com> - 2012-04-22 03:17 +0100
Re: Is there (semi-) portable IO-Completion-Port-like functionality in C++ land? Christof Meerwald <NOSPAM-seeMySig+uzk5+@usenet.cmeerw.org> - 2012-04-22 20:09 +0000
csiph-web