Article View: comp.lang.c++
Article #430Re: what's a process, was The end of software secrecy is almost
From: Chris M. Thomasson
Date: Mon, 26 Oct 2026 20:19
Date: Mon, 26 Oct 2026 20:19
40 lines
3108 bytes
3108 bytes
On 10/26/2026 9:19 AM, boltar@caprica.universe wrote: > On Mon, 26 Oct 2026 03:53:45 -0700 > Peter Flass <Peter@Iron-Spring.com> gabbled: >> On 10/26/26 02:57, boltar@caprica.universe wrote: >>> On Sun, 25 Oct 2026 18:17:44 -0000 (UTC) >>> John Levine <johnl@taugh.com> gabbled: >>>> According toΒ <boltar@caprica.universe>: >>>>>> Threads share resources such as address space, files, etc. A process >>>>>> runs in its own address space. (at least these days, before virtual >>>>>> memory, who knows?) >>>>> >>>>> With copy-on-write process models the actual difference is a bit less >>>>> clear cut. >>>> >>>> Copy-on-write (or on some older systems copy-on-touch) is an >>>> implementation >>>> detail.Β Neither process can look inside the other even if they >>>> share some >>>> unwritten or untouched pages. >>> >>> The point is they are sharing memory. In a reference implementation >>> processes >> >>> don't share any virtual memory at all - everything is copied to a new >> location >>> at fork - so you can't use sharing memory as a way to demarcate >> multithreading >>> and multiprocess. >> >> In the old days before IUCV or VMCF I did a multi-process application >> on VM by using a file to pass data among processes. Surprisingly, it >> worked well. > > I'd be interested how you'd implement fork() using that method given you > need to copy the state of all file descriptors, heap, stack and global > memory, current working directory, enviroment variables and a ton of other > things I can't remember without googling. > Why even do that? Sigh.
Technical Details
Message-ID:
<11bock3$u6st$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> <11bin3i$ma9$1@reader2.panix.com> <11bj08r$309uk$1@dont-email.me> <11bkfe7$2pasn$1@dont-email.me> <11blh48$1sk$1@gal.iecc.com> <11bn86h$11hpa$1@dont-email.me> <11bnbfp$gbpk$2@dont-email.me> <11bnuin$2svbn$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: comp.lang.c++,alt.folklore.computers Subject: Re: what's a process, was The end of software secrecy is almost Date: Mon, 26 Oct 2026 13:19:14 -0700 Organization: A noiseless patient Spider Lines: 40 Message-ID: <11bock3$u6st$1@dont-email.me> References: <11amvre$15far$1@dont-email.me> <11bin3i$ma9$1@reader2.panix.com> <11bj08r$309uk$1@dont-email.me> <11bkfe7$2pasn$1@dont-email.me> <11blh48$1sk$1@gal.iecc.com> <11bn86h$11hpa$1@dont-email.me> <11bnbfp$gbpk$2@dont-email.me> <11bnuin$2svbn$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Mon, 26 Oct 2026 20:19:16 +0000 (UTC) Injection-Info: dont-email.me; logging-data="990109"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+tfM8yH2haqKrzpYSYRuQFW0gh67gtYwo="; posting-host="49da529de1e605d0c2cf1bd5b7b86f4a" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:H8XnYFRdjmZllYKhq6wFw4PL70E= sha256:7E6HRJdFX2Ej+ajC++2xgHX4uAv7/uR9xY3qC1sUtTQ= sha1:vz5oQ3Cj2I/HAKozhA5pKPryrDA= sha256:tUWmZXN3GPZPgzvGoPYSW1ZSb2NmNTKN0upnmWARZtw= In-Reply-To: <11bnuin$2svbn$1@dont-email.me> Content-Language: en-US