Article View: comp.lang.c++
Article #421Re: what's a process, was The end of software secrecy is almost
From: Peter Flass
Date: Mon, 26 Oct 2026 18:46
Date: Mon, 26 Oct 2026 18:46
41 lines
3238 bytes
3238 bytes
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.
Technical Details
Message-ID:
<11bo76e$s0r9$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: Peter Flass <Peter@Iron-Spring.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 11:46:38 -0700 Organization: A noiseless patient Spider Lines: 41 Message-ID: <11bo76e$s0r9$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 18:46:39 +0000 (UTC) Injection-Info: dont-email.me; logging-data="918377"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/WgerkVbdLZHvHhBsgNgJ9"; posting-host="31db2acc6e9725b45ea5857a6c876a18" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:jxE2Yw0PMs5LsfQTbBjGyGfjaSs= sha256:9o7alL6D5i8+2Yt4rytlO1FBxBkDGtGPHEQPlCUTyP0= sha1:55dVnwinPkrlabS8tGsMKkRFV24= sha256:6AdpZ4jJTmCtPDgYYBocOPyL5QZrqE9s+aer1eNioY4= In-Reply-To: <11bnuin$2svbn$1@dont-email.me> Content-Language: en-US