Article View: comp.lang.c++
Article #420Re: Re: what's a process, was The end of software secrecy is almost
From: boltar
Date: Mon, 26 Oct 2026 16:19
Date: Mon, 26 Oct 2026 16:19
34 lines
2740 bytes
2740 bytes
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.
Technical Details
Message-ID:
<11bnuin$2svbn$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>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: comp.lang.c++,alt.folklore.computers Subject: Re: Re: what's a process, was The end of software secrecy is almost Date: Mon, 26 Oct 2026 16:19:35 -0000 (UTC) Organization: A noiseless patient Spider Lines: 34 Message-ID: <11bnuin$2svbn$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> Content-Type: text/plain; charset=UTF-8; format=flowed Injection-Date: Mon, 26 Oct 2026 16:19:36 +0000 (UTC) Injection-Info: dont-email.me; logging-data="3046775"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+ekD9dVPG4u9I3cLff3KdG"; posting-host="60c3073eb060f98052890567c07d1963" Cancel-Lock: sha1:v+1Gget1be2J8XX96zACIouOq94= sha256:s3O/SXtkDlJTd6ASjSWDofPODT7GUn9Kus2zgr0WTsE= sha1:ftjlqBbt0mK7hs10O9T13dEzLhI= sha256:F+M7UBaHGg70wLM4c6KNvbY2RSVZTzk20Zzan6oZsYo=