๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c++
Article #456

Threads and processes (Re: โ€œThe end of software secrecy is almost upon)

#456
From: Lars Poulsen
Date: Tue, 27 Oct 2026 02:14
42 lines
3574 bytes
On 10/22/2026 07:50, boltar@battlestar.co.uk wrote:
> On Wed, 21 Oct 2026 19:01:38 -0000 (UTC)
> cross@spitfire.i.gajendra.net (Dan Cross) wrote:
>> In article <11bb1da$qfn9$1@dont-email.me>,  <boltar@battlestar.co.uk> wrote:
>>> Not sure why you think its conspiracy anything. I use the language on a
>>> daily basis and everytime a new version comes out I hope they've added
>>> something useful but since 2014 its been a law of diminishing returns.
>>> Plus there's unexplained omissions - eg threads have been part of the core
>>> language since 2011. Great, but what about processes? When do we get them?
>>> Sure, I could just use fork() but then I could also just use pthread_create()
>>> too.
>>
>> One can implement a pretty reasonable threads library given the
>> virtual machine model of standard C or C++.  Processes?  With
> 
> Virtual machine? Wrong language , comp.lang.java is that way --->
> 
>> their own address spaces, credentials, resource limits, IPC
>> mechanisms, potentially running different programs, and so on?
>>
>> Not so much.  You need an operating system for that, son.
> 
> You need an OS to do threading properly too. Theres a reason green threads
> in java were a joke.
Processes are almost self-contained virtual machines. Unix has one of 
the cleanest implementations around, and the fork() system call combined 
with copy-on-write is very elegant. None of the other operating system I 
have worked with have anything remotely like it. VMS was also quite 
elegant, but so different that I think it would be impossible to 
simulate one on the other (in either direction).

Threads are much simpler. Multiple strands of execution in a shared 
address space. All the language needs to do is provide one shared 
vocabulary to allow code portability.

To me it is obvious that threads can and should be standardized, while 
processes are generally not portable.

But if you hotheads can't agree on that, can you please now agree to 
disagree and shut up!
-- 
Lars Poulsen - an old geek in Santa Barbara, California
Technical Details
Message-ID: <11bp1f3$15adn$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-mail
References: <11amvre$15far$1@dont-email.me> <11baun8$29v7a$1@dont-email.me> <11bb04l$68pg$1@dont-email.me> <11bb1da$qfn9$1@dont-email.me> <11bb26i$1qs$1@reader2.panix.com> <11bd7rg$2cvfs$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: Lars Poulsen <lars@beagle-ears.com>
Newsgroups: comp.lang.fortran,comp.lang.c++,alt.folklore.computers
Subject: Threads and processes (Re: โ€œThe end of software secrecy is almost upon)
Date: Mon, 26 Oct 2026 19:14:57 -0700
Organization: A noiseless patient Spider
Lines: 42
Message-ID: <11bp1f3$15adn$1@dont-email.me>
References: <11amvre$15far$1@dont-email.me> <11baun8$29v7a$1@dont-email.me>
 <11bb04l$68pg$1@dont-email.me> <11bb1da$qfn9$1@dont-email.me>
 <11bb26i$1qs$1@reader2.panix.com> <11bd7rg$2cvfs$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 27 Oct 2026 02:15:00 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="1223095"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1/9szNt/vQzZ5VnyTaBQPLq7yiVWsOja5I="; posting-host="a5b5a1de474d63c0c80c42151ec561ea"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:qJbj6R8gjh1LYZzwt89St3L8htQ= sha256:Pyne9eaKXPOrQZY98i02ydDwX5dPJo1a6iXn6wx+1Q4=
	sha1:xM5PbvfrblcbwY/3fu8IaK/I5gs= sha256:lTjNHB/MZyAuiGZIScsbngB80IiqGokndC+mD8k02Mc=
Content-Language: en-US
In-Reply-To: <11bd7rg$2cvfs$1@dont-email.me>