Article View: comp.lang.c++
Article #493Re: โThe end of software secrecy is almost upon
From: Chris M. Thomasson
Date: Wed, 28 Oct 2026 21:04
Date: Wed, 28 Oct 2026 21:04
40 lines
3170 bytes
3170 bytes
On 10/28/2026 2:01 AM, boltar@caprica.universe wrote: > On Mon, 26 Oct 2026 13:03:25 -0700 > "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> gabbled: >> On 10/26/2026 3:01 AM, boltar@caprica.universe wrote: >>> Creating a brand new process is fine if >>> you don't need any complicated shared state such as when kicking off >>> something >>> on the command line or creating a pipe (something else win32 is shit >>> at) but >>> thats about it. >>> >> >> Shared state? Just use memory mapped files. You don't need pipes/ >> sockets etc. You need to know how to properly sync things. > > Oh really? So you receive an incoming connection to a socket via an > accept() > call. In unix you can fork() at that point so the connecting client has a > server process all to itself with all the state instantly copied from the > parent process. HOw do you mimic that in windows? Start the server process > from scratch and pass it a ton of state via the command line or using some > roll-your-own shared memory nonsense? Give me a break. I guess in > windows it > spawns a thread leading to the issue of a single thread crashing > bringing down > the entire application - something multiprocess completely avoids. > On Windows? Get used to https://learn.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-wsaduplicatesocketa DuplicateHandle etc... You can have multiple multi threaded processes on windows. Even ones with multiple fibers running on the multiple threads per process.
Technical Details
Message-ID:
<11bto04$2prdo$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> <11bgh17$1s8$1@reader2.panix.com> <11bhppd$2lpkc$1@dont-email.me> <11bif5s$2pam0$1@dont-email.me> <11birhe$bfo$1@panix2.panix.com> <11bkeub$2pa9l$1@dont-email.me> <11blrok$10e$1@dont-email.me> <11bn8ej$2s65h$1@dont-email.me> <11bobmd$ttuj$1@dont-email.me> <11bsdkr$31fn1$1@dont-email.me>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: "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> Newsgroups: rec.arts.sf.written,comp.lang.fortran,comp.lang.c++,alt.comp.lang.rust,alt.folklore.computers Subject: Re: โThe end of software secrecy is almost upon Date: Wed, 28 Oct 2026 14:04:02 -0700 Organization: A noiseless patient Spider Lines: 40 Message-ID: <11bto04$2prdo$1@dont-email.me> References: <11amvre$15far$1@dont-email.me> <11bgh17$1s8$1@reader2.panix.com> <11bhppd$2lpkc$1@dont-email.me> <11bif5s$2pam0$1@dont-email.me> <11birhe$bfo$1@panix2.panix.com> <11bkeub$2pa9l$1@dont-email.me> <11blrok$10e$1@dont-email.me> <11bn8ej$2s65h$1@dont-email.me> <11bobmd$ttuj$1@dont-email.me> <11bsdkr$31fn1$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Wed, 28 Oct 2026 21:04:05 +0000 (UTC) Injection-Info: dont-email.me; logging-data="2944440"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1956Ci0KMCip/eUvojU6yjwExviL1J//Pk="; posting-host="ce22479583babc8631500b8cafa91fe8" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:1kcfNDVR0qocQthHIsKnnqaHkqc= sha256:59VREB1z8jkEsgvyPMrJFKZUldK46PQo7X2BCHga4w4= sha1:zm5GQld2rxU0MfjM2BUFQGjIjjM= sha256:NxlF5hHIYSeBsXJJj77tv9UG+rdoBEJY3yQnZKNY1lM= In-Reply-To: <11bsdkr$31fn1$1@dont-email.me> Content-Language: en-US