Article View: comp.lang.c++
Article #781Re: โThe end of software secrecy is almost upon
From: boltar
Date: Sat, 07 Nov 2026 09:41
Date: Sat, 07 Nov 2026 09:41
20 lines
2524 bytes
2524 bytes
On Sat, 7 Nov 2026 01:17:19 -0000 (UTC) antispam@fricas.org (Waldek Hebisch) gabbled: >In comp.lang.c++ Michael S <already5chosen@yahoo.com> wrote: >> * - Although, >> 1) of course, there (in Win32) exist not too complicated alternative >> methods to achieve such multiplexing as well. Just not via select(). >> 2) today, with nearly all file I/O deeply cached, multiplexing waiting >> for file I/O with waiting for sockets is a bad idea. OTOH, Multiplexing >> sockets with pipes could still make sense, infrequently. > >Just curious how you solve problem of blocking in single threaded >program? AFAIK to get data from disc one needs about 10ms or possibly >more, which is pretty long time on modern machines. Do you assume >that all data that you need is in RAM (or will be after short startup >time)? Both select() and poll() can be non blocking if you pass a zero timeout value to them. Any file descriptors than can be read from and/or written to will be set in the mask.
Technical Details
Message-ID:
<11cmrot$1l6bb$1@dont-email.me>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mailReferences:
<11amvre$15far$1@dont-email.me> <20261030105900.000020ce@yahoo.com> <11c1uqd$keq$1@reader2.panix.com> <11c2fcl$19bk2$1@dont-email.me> <11c2rla$hko3$2@dont-email.me> <11c362o$lfc1$1@dont-email.me> <hWdFS.111353$cLL5.22363@fx42.iad> <11c3uqi$rrul$1@dont-email.me> <11c4dfu$39hoo$1@dont-email.me> <20261031195610.00002b01@yahoo.com> <11c6tfa$3bvko$1@dont-email.me> <20261101215941.000000f8@yahoo.com> <11cab3e$1disg$1@dont-email.me> <20261102234658.0000349e@yahoo.com> <11clu6t$347eh$1@paganini.bofh.team>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: boltar@caprica.universe Newsgroups: comp.lang.c++ Subject: Re: โThe end of software secrecy is almost upon Date: Sat, 7 Nov 2026 09:41:49 -0000 (UTC) Organization: A noiseless patient Spider Lines: 20 Message-ID: <11cmrot$1l6bb$1@dont-email.me> References: <11amvre$15far$1@dont-email.me> <20261030105900.000020ce@yahoo.com> <11c1uqd$keq$1@reader2.panix.com> <11c2fcl$19bk2$1@dont-email.me> <11c2rla$hko3$2@dont-email.me> <11c362o$lfc1$1@dont-email.me> <hWdFS.111353$cLL5.22363@fx42.iad> <11c3uqi$rrul$1@dont-email.me> <11c4dfu$39hoo$1@dont-email.me> <20261031195610.00002b01@yahoo.com> <11c6tfa$3bvko$1@dont-email.me> <20261101215941.000000f8@yahoo.com> <11cab3e$1disg$1@dont-email.me> <20261102234658.0000349e@yahoo.com> <11clu6t$347eh$1@paganini.bofh.team> Injection-Date: Sat, 07 Nov 2026 09:41:50 +0000 (UTC) Injection-Info: dont-email.me; logging-data="1743211"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+NqsaPTPsqgFm5wveQ8fBB"; posting-host="c22f5eb1b39785feb54b65bd23c1bc21" Cancel-Lock: sha1:wmQBPlf4+SWT+k9TJvnXS1QQJVc= sha256:d4FuuiNVHeDCblGhkeq2D7XcbOzQVo//9tx1PmZXYIk= sha1:D/nFQGlhGcMMn/RbCCNUoRXPlAY= sha256:LFZtfxIvzdJs1UssjHn1WihxaQRyzkl6E1za/HxjU3I=