Article View: comp.lang.c++
Article #503Re: โThe end of software secrecy is almost upon
From: boltar
Date: Thu, 29 Oct 2026 16:16
Date: Thu, 29 Oct 2026 16:16
43 lines
3612 bytes
3612 bytes
On Wed, 28 Oct 2026 22:05:58 +0200 Michael S <already5chosen@yahoo.com> gabbled: >On Wed, 28 Oct 2026 09:08:44 -0000 (UTC) >boltar@caprica.universe wrote: > >> On Mon, 26 Oct 2026 22:09:01 +0200 >> Michael S <already5chosen@yahoo.com> gabbled: >> >On Mon, 26 Oct 2026 10:01:55 -0000 (UTC) >> >boltar@caprica.universe wrote: >> >> win32 can't do fork() making it effectively a totally useless API >> >> for a lot of multiprocess development. 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. >> >> >> > >> >You are clueless about Windows. That's o.k. >> >Your pretense that you know something about it is not o.k. >> >In that regard you are not better than LDO. >> >> OK, whats the windows API call thats the equivalent of fork()? I'm not >> talking about CreateProcessA() which doesn't even come close. >> > >There is no equivalent for fork(). But nearly all things that Posix >devs achieve by fork() followed by one or another magic incantation and >then followed by exec() can be achived on Windows as well, typically by >means of one or another magic flag in parameters of CreateProcess or >of one of it's more complicated cousins (CreateProcessAsUser, >CreateProcessWithLogon, CreateProcessWithToken, may be others). These >things never fascinated me, so I am not an expert. > >Now, there were cases where Unix programmers used fork() without >following it by exec(), but I would think that in the recent 25-30 years >such programming patterns are discouraged in favor of threads. Depends how much resilience you need. If the child process needs the state of the parent but doesn't need to interact with it or any of the other child processes much if at all and you're not creating dozens of them a second then why would you use a thread with all the associated hassle of critical section requirements, deadlocks, potential race conditions and one thread crashing killing the whole application?
Technical Details
Message-ID:
<11bvrh2$34rmg$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> <20261026220901.00005fbd@yahoo.com> <11bse2s$31g12$1@dont-email.me> <20261028220558.000033eb@yahoo.com>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: 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: Thu, 29 Oct 2026 16:16:34 -0000 (UTC) Organization: A noiseless patient Spider Lines: 43 Message-ID: <11bvrh2$34rmg$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> <20261026220901.00005fbd@yahoo.com> <11bse2s$31g12$1@dont-email.me> <20261028220558.000033eb@yahoo.com> Content-Type: text/plain; charset=US-ASCII Injection-Date: Thu, 29 Oct 2026 16:16:35 +0000 (UTC) Injection-Info: dont-email.me; logging-data="3305168"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/BQ/x9F2gewZusNnCk28Xx"; posting-host="52219c97e28fef1ac3491b65fea4c56f" Cancel-Lock: sha1:8GU787YpXO/Abfumnf/ezwk+MMY= sha256:mNUnBUeDM2p9F1ckNzq7HIppUANgfRIs87ktZcbkBFg= sha1:BMZnKy19QwxFucjhXDgoI7Kxncc= sha256:mVwm1sJfkO6A7Fd5udRsbw5IIpNARbNY5rIZi3SPcog=