Article View: comp.lang.c++
Article #433Re: 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
45 lines
3413 bytes
3413 bytes
On 10/26/2026 11:46 AM, Peter Flass wrote: > On 10/26/26 09:19, 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. > > No fork. Each VM had a single thread of execution. I was happy to get > multiple processes to cooperate. It was a master process (virtual > machine) that distributed work to worker machines. That works well.
Technical Details
Message-ID:
<11bocl5$u6st$2@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> <11bo76e$s0r9$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:49 -0700 Organization: A noiseless patient Spider Lines: 45 Message-ID: <11bocl5$u6st$2@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> <11bo76e$s0r9$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:50 +0000 (UTC) Injection-Info: dont-email.me; logging-data="990109"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+6iCIYlSKGDNTh6O6olBLQEzts4N9RFxQ="; posting-host="49da529de1e605d0c2cf1bd5b7b86f4a" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:CKdygok+sDgk4Hk7Wis2tMzy3bQ= sha256:U4M+gTbuKMR6CK89VGH1G25oGwMJWROxDHExv1yadq8= sha1:2JDX0JLNeG18Z9tXfW0Wi7NFt/k= sha256:Df0hrw/Xp3IUjQ0iMTtAyoXvE8BX5loHSxUZfDWpe3Y= Content-Language: en-US In-Reply-To: <11bo76e$s0r9$1@dont-email.me>