Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

Space tells matter how to move and matter tells space how to curve. -- Wheeler


devel / comp.arch / Re: thread vs process

SubjectAuthor
* thread vs processMarco Moock
+* Re: thread vs processTerje Mathisen
|+- Re: thread vs processLawrence D'Oliveiro
|`- Re: thread vs processMichael S
+* Re: thread vs processChris M. Thomasson
|`* Re: thread vs processJohn Levine
| `* Re: thread vs processChris M. Thomasson
|  `* Re: thread vs processGeorge Neuner
|   +* Re: thread vs processChris M. Thomasson
|   |`* Re: thread vs processGeorge Neuner
|   | `* Re: thread vs processBGB
|   |  `* Re: thread vs processLawrence D'Oliveiro
|   |   +* Re: thread vs processScott Lurndal
|   |   |`* Re: thread vs processLawrence D'Oliveiro
|   |   | `- Re: thread vs processScott Lurndal
|   |   `- Re: thread vs processChris M. Thomasson
|   `* Re: thread vs processLawrence D'Oliveiro
|    `- Re: thread vs processGeorge Neuner
+- Re: thread vs processLawrence D'Oliveiro
`- Re: thread vs processMitchAlsup1

1
thread vs process

<uoamkg$2gshh$1@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=36917&group=comp.arch#36917

  copy link   Newsgroups: comp.arch
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: mm+usenet-es@dorfdsl.de (Marco Moock)
Newsgroups: comp.arch
Subject: thread vs process
Date: Thu, 18 Jan 2024 09:14:05 +0100
Organization: A noiseless patient Spider
Lines: 12
Message-ID: <uoamkg$2gshh$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 18 Jan 2024 08:14:08 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="0840d55b53407f99a22630d7804b7f63";
logging-data="2650673"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/cmhLz5JP8VAmxXUiWWXyD"
Cancel-Lock: sha1:bLEdp9gneqtVOzfMnXC9QdZjVuE=
 by: Marco Moock - Thu, 18 Jan 2024 08:14 UTC

Hello!

Some programs say that they are multi-process or multi-threaded.

What is the exact difference here?

--
kind regards
Marco

Spam und Werbung bitte an ichwillgesperrtwerden@nirvana.admins.ws

Re: thread vs process

<uoar1d$2hfuf$1@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=36919&group=comp.arch#36919

  copy link   Newsgroups: comp.arch
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: terje.mathisen@tmsw.no (Terje Mathisen)
Newsgroups: comp.arch
Subject: Re: thread vs process
Date: Thu, 18 Jan 2024 10:29:17 +0100
Organization: A noiseless patient Spider
Lines: 20
Message-ID: <uoar1d$2hfuf$1@dont-email.me>
References: <uoamkg$2gshh$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 18 Jan 2024 09:29:18 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="1a38aec96462352268792b64221d6216";
logging-data="2670543"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+TMfjbvvAF+CKB2cczUEtu32zKJ1ZZ0IwNOsUpNK44YQ=="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Firefox/91.0 SeaMonkey/2.53.18
Cancel-Lock: sha1:DUYXVWvTEHcVGjKhNCEap7HBY6c=
In-Reply-To: <uoamkg$2gshh$1@dont-email.me>
 by: Terje Mathisen - Thu, 18 Jan 2024 09:29 UTC

Marco Moock wrote:
> Hello!
>
> Some programs say that they are multi-process or multi-threaded.
>
> What is the exact difference here?

Welcome to comp.arch where we really love this kind of homework questions!

The difference is of course mostly one of semantics only, where
multi-threaded means that each cpu follows a single thread of execution,
working independently, whereas multi-process has a bunch of cpus all
cooperating on a single task.

Terje

--
- <Terje.Mathisen at tmsw.no>
"almost all programming can be viewed as an exercise in caching"

Re: thread vs process

<uoc42t$2ogov$2@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=36933&group=comp.arch#36933

  copy link   Newsgroups: comp.arch
Path: i2pn2.org!rocksolid2!news.neodome.net!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: chris.m.thomasson.1@gmail.com (Chris M. Thomasson)
Newsgroups: comp.arch
Subject: Re: thread vs process
Date: Thu, 18 Jan 2024 13:09:48 -0800
Organization: A noiseless patient Spider
Lines: 9
Message-ID: <uoc42t$2ogov$2@dont-email.me>
References: <uoamkg$2gshh$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 18 Jan 2024 21:09:49 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="cc6405ddd276c3b4eb7c996db44b0166";
logging-data="2900767"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19y76JjXwjBkA4paGlf1Jseoojgg9ZbEXk="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:roKW/sjEw8oF2wSgul/9yYg5zpk=
In-Reply-To: <uoamkg$2gshh$1@dont-email.me>
Content-Language: en-US
 by: Chris M. Thomasson - Thu, 18 Jan 2024 21:09 UTC

On 1/18/2024 12:14 AM, Marco Moock wrote:
> Hello!
>
> Some programs say that they are multi-process or multi-threaded.
>
> What is the exact difference here?
>

What about multiple multi-threaded processes? ;^)

Re: thread vs process

<uoc81a$1f6p$2@gal.iecc.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=36935&group=comp.arch#36935

  copy link   Newsgroups: comp.arch
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!news.iecc.com!.POSTED.news.iecc.com!not-for-mail
From: johnl@taugh.com (John Levine)
Newsgroups: comp.arch
Subject: Re: thread vs process
Date: Thu, 18 Jan 2024 22:17:14 -0000 (UTC)
Organization: Taughannock Networks
Message-ID: <uoc81a$1f6p$2@gal.iecc.com>
References: <uoamkg$2gshh$1@dont-email.me> <uoc42t$2ogov$2@dont-email.me>
Injection-Date: Thu, 18 Jan 2024 22:17:14 -0000 (UTC)
Injection-Info: gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970";
logging-data="48345"; mail-complaints-to="abuse@iecc.com"
In-Reply-To: <uoamkg$2gshh$1@dont-email.me> <uoc42t$2ogov$2@dont-email.me>
Cleverness: some
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: johnl@iecc.com (John Levine)
 by: John Levine - Thu, 18 Jan 2024 22:17 UTC

According to Chris M. Thomasson <chris.m.thomasson.1@gmail.com>:
>On 1/18/2024 12:14 AM, Marco Moock wrote:
>> Hello!
>>
>> Some programs say that they are multi-process or multi-threaded.
>>
>> What is the exact difference here?

>What about multiple multi-threaded processes? ;^)

You know perfectly well that's architecturally impossible. See the previous excellent answer.

--
Regards,
John Levine, johnl@taugh.com, Primary Perpetrator of "The Internet for Dummies",
Please consider the environment before reading this e-mail. https://jl.ly

Re: thread vs process

<uoc8lk$2paej$1@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=36937&group=comp.arch#36937

  copy link   Newsgroups: comp.arch
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: chris.m.thomasson.1@gmail.com (Chris M. Thomasson)
Newsgroups: comp.arch
Subject: Re: thread vs process
Date: Thu, 18 Jan 2024 14:28:03 -0800
Organization: A noiseless patient Spider
Lines: 17
Message-ID: <uoc8lk$2paej$1@dont-email.me>
References: <uoamkg$2gshh$1@dont-email.me> <uoc42t$2ogov$2@dont-email.me>
<uoc81a$1f6p$2@gal.iecc.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 18 Jan 2024 22:28:04 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="cc6405ddd276c3b4eb7c996db44b0166";
logging-data="2927059"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19lVWzjj2uSLZdOz5h+DZuYiJ7EW9mfD5k="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:qxg2cBokknqOgwBG0zIvnG0u8Aw=
In-Reply-To: <uoc81a$1f6p$2@gal.iecc.com>
Content-Language: en-US
 by: Chris M. Thomasson - Thu, 18 Jan 2024 22:28 UTC

On 1/18/2024 2:17 PM, John Levine wrote:
> According to Chris M. Thomasson <chris.m.thomasson.1@gmail.com>:
>> On 1/18/2024 12:14 AM, Marco Moock wrote:
>>> Hello!
>>>
>>> Some programs say that they are multi-process or multi-threaded.
>>>
>>> What is the exact difference here?
>
>> What about multiple multi-threaded processes? ;^)
>
> You know perfectly well that's architecturally impossible. See the previous excellent answer.
>
>
>

Multiple multi-threaded processes are impossible? Really? Since when...

Re: thread vs process

<uocdnv$2ptkv$6@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=36939&group=comp.arch#36939

  copy link   Newsgroups: comp.arch
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.arch
Subject: Re: thread vs process
Date: Thu, 18 Jan 2024 23:54:39 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 5
Message-ID: <uocdnv$2ptkv$6@dont-email.me>
References: <uoamkg$2gshh$1@dont-email.me> <uoar1d$2hfuf$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 18 Jan 2024 23:54:39 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="a99d1106c5a63aadcf4a9426eaf9b9d4";
logging-data="2946719"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18lXg9bPFU5/9z6PgGcfEP9"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:wYqI2VIlz4QCVt5WLSen+pbH7/M=
 by: Lawrence D'Oliv - Thu, 18 Jan 2024 23:54 UTC

On Thu, 18 Jan 2024 10:29:17 +0100, Terje Mathisen wrote:

> The difference is of course mostly one of semantics only ...

As opposed to syntax, perhaps?

Re: thread vs process

<uocdu4$2ptkv$7@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=36940&group=comp.arch#36940

  copy link   Newsgroups: comp.arch
Path: i2pn2.org!i2pn.org!paganini.bofh.team!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.arch
Subject: Re: thread vs process
Date: Thu, 18 Jan 2024 23:57:57 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 20
Message-ID: <uocdu4$2ptkv$7@dont-email.me>
References: <uoamkg$2gshh$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 18 Jan 2024 23:57:57 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="a99d1106c5a63aadcf4a9426eaf9b9d4";
logging-data="2946719"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19rBzIb9BQDtjmv4jHJLyxF"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:01fSwsMS3NVfWgDS1kmBtE+fZ/4=
 by: Lawrence D'Oliv - Thu, 18 Jan 2024 23:57 UTC

On Thu, 18 Jan 2024 09:14:05 +0100, Marco Moock wrote:

> Some programs say that they are multi-process or multi-threaded.
>
> What is the exact difference here?

Think of a bare-minimum context of execution: a program counter that
points at an instruction stream, and some machine state for executing
those instructions.

Obviously that’s not enough to run any meaningful program: you also need
memory to hold that instruction stream and associated data, plus other OS
context like open files, network connections, access-control credentials
etc. Call that “process context”.

So if two execution contexts have their own process contexts, you call
them “separate processes”. If they share the same process context, you
call them “threads within a process”.

I think that’s about as basic a definition as you can get.

Re: thread vs process

<pvvjqil90k12ejl2b7vv70u8atukfvvu4h@4ax.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=36941&group=comp.arch#36941

  copy link   Newsgroups: comp.arch
Path: i2pn2.org!.POSTED!not-for-mail
From: gneuner2@comcast.net (George Neuner)
Newsgroups: comp.arch
Subject: Re: thread vs process
Date: Thu, 18 Jan 2024 23:55:01 -0500
Organization: i2pn2 (i2pn.org)
Message-ID: <pvvjqil90k12ejl2b7vv70u8atukfvvu4h@4ax.com>
References: <uoamkg$2gshh$1@dont-email.me> <uoc42t$2ogov$2@dont-email.me> <uoc81a$1f6p$2@gal.iecc.com> <uoc8lk$2paej$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Injection-Info: i2pn2.org;
logging-data="3973277"; mail-complaints-to="usenet@i2pn2.org";
posting-account="h5eMH71iFfocGZucc+SnA0y5I+72/ecoTCcIjMd3Uww";
User-Agent: ForteAgent/8.00.32.1272
X-Spam-Checker-Version: SpamAssassin 4.0.0
 by: George Neuner - Fri, 19 Jan 2024 04:55 UTC

On Thu, 18 Jan 2024 14:28:03 -0800, "Chris M. Thomasson"
<chris.m.thomasson.1@gmail.com> wrote:

>On 1/18/2024 2:17 PM, John Levine wrote:
>> According to Chris M. Thomasson <chris.m.thomasson.1@gmail.com>:
>>
>>> What about multiple multi-threaded processes? ;^)
>>
>> You know perfectly well that's architecturally impossible. See the
>> previous excellent answer.
>
>Multiple multi-threaded processes are impossible? Really? Since when...

I think John may be assuming that a CPU/core runs only one thread at a
time ... which isn't necessarily true.

Re: thread vs process

<uod10m$30j2c$1@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=36942&group=comp.arch#36942

  copy link   Newsgroups: comp.arch
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: chris.m.thomasson.1@gmail.com (Chris M. Thomasson)
Newsgroups: comp.arch
Subject: Re: thread vs process
Date: Thu, 18 Jan 2024 21:23:33 -0800
Organization: A noiseless patient Spider
Lines: 19
Message-ID: <uod10m$30j2c$1@dont-email.me>
References: <uoamkg$2gshh$1@dont-email.me> <uoc42t$2ogov$2@dont-email.me>
<uoc81a$1f6p$2@gal.iecc.com> <uoc8lk$2paej$1@dont-email.me>
<pvvjqil90k12ejl2b7vv70u8atukfvvu4h@4ax.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 19 Jan 2024 05:23:35 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="44184edc633617af7fc7f7c89667ab4f";
logging-data="3165260"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19A0mbH3jFpzc8Ijmj0wRrWW0YELv8KcaA="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:LCWpJktrLVZnJg3HsBiDCSRfUQk=
In-Reply-To: <pvvjqil90k12ejl2b7vv70u8atukfvvu4h@4ax.com>
Content-Language: en-US
 by: Chris M. Thomasson - Fri, 19 Jan 2024 05:23 UTC

On 1/18/2024 8:55 PM, George Neuner wrote:
> On Thu, 18 Jan 2024 14:28:03 -0800, "Chris M. Thomasson"
> <chris.m.thomasson.1@gmail.com> wrote:
>
>> On 1/18/2024 2:17 PM, John Levine wrote:
>>> According to Chris M. Thomasson <chris.m.thomasson.1@gmail.com>:
>>>
>>>> What about multiple multi-threaded processes? ;^)
>>>
>>> You know perfectly well that's architecturally impossible. See the
>>> previous excellent answer.
>>
>> Multiple multi-threaded processes are impossible? Really? Since when...
>
> I think John may be assuming that a CPU/core runs only one thread at a
> time ... which isn't necessarily true.
>

I wonder if I missed his main point?

Re: thread vs process

<uod490$30h1g$4@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=36943&group=comp.arch#36943

  copy link   Newsgroups: comp.arch
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.arch
Subject: Re: thread vs process
Date: Fri, 19 Jan 2024 06:19:12 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 9
Message-ID: <uod490$30h1g$4@dont-email.me>
References: <uoamkg$2gshh$1@dont-email.me> <uoc42t$2ogov$2@dont-email.me>
<uoc81a$1f6p$2@gal.iecc.com> <uoc8lk$2paej$1@dont-email.me>
<pvvjqil90k12ejl2b7vv70u8atukfvvu4h@4ax.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 19 Jan 2024 06:19:12 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="a99d1106c5a63aadcf4a9426eaf9b9d4";
logging-data="3163184"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19vjxMuqBkmsCgi5gc9j9mI"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:7wEUboOwrq8ahxHrkfOlFyj79cw=
 by: Lawrence D'Oliv - Fri, 19 Jan 2024 06:19 UTC

On Thu, 18 Jan 2024 23:55:01 -0500, George Neuner wrote:

> I think John may be assuming that a CPU/core runs only one thread at a
> time ... which isn't necessarily true.

Those “hardware threads” are probably best described as “virtual CPUs”.
They have nothing to do with threads versus processes in the software
sense. They are a way of sharing functional units to make it look almost,
but not quite, like separate CPUs.

Re: thread vs process

<20240119161001.000075a3@yahoo.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=36946&group=comp.arch#36946

  copy link   Newsgroups: comp.arch
Path: i2pn2.org!i2pn.org!news.furie.org.uk!nntp.terraraq.uk!news.gegeweb.eu!gegeweb.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: already5chosen@yahoo.com (Michael S)
Newsgroups: comp.arch
Subject: Re: thread vs process
Date: Fri, 19 Jan 2024 16:10:01 +0200
Organization: A noiseless patient Spider
Lines: 28
Message-ID: <20240119161001.000075a3@yahoo.com>
References: <uoamkg$2gshh$1@dont-email.me>
<uoar1d$2hfuf$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: dont-email.me; posting-host="b6d5256acaaefdc78bde56f5aa3f5739";
logging-data="3335939"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+jkaNq55Wr2MEAq7WiAQnkcbEqEvhedPo="
Cancel-Lock: sha1:2BteX1LMPynkd+MNzPobNIzswOs=
X-Newsreader: Claws Mail 4.1.1 (GTK 3.24.34; x86_64-w64-mingw32)
 by: Michael S - Fri, 19 Jan 2024 14:10 UTC

On Thu, 18 Jan 2024 10:29:17 +0100
Terje Mathisen <terje.mathisen@tmsw.no> wrote:

> Marco Moock wrote:
> > Hello!
> >
> > Some programs say that they are multi-process or multi-threaded.
> >
> > What is the exact difference here?
>
> Welcome to comp.arch where we really love this kind of homework
> questions!
>
> The difference is of course mostly one of semantics only, where
> multi-threaded means that each cpu follows a single thread of
> execution, working independently, whereas multi-process has a bunch
> of cpus all cooperating on a single task.
>
> Terje
>
>

I am not sure about it.
IMHO, first and foremost it is a matter of what industry you are in.
The programs used in textile tend to be multi-threaded.
On the other hand, food industry is known to rely on multi-process
programming, sometimes detrimentally to their consumer's health.

Re: thread vs process

<gcblqitlvnkq50vbi631gb59ekifh479hr@4ax.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=36951&group=comp.arch#36951

  copy link   Newsgroups: comp.arch
Path: i2pn2.org!.POSTED!not-for-mail
From: gneuner2@comcast.net (George Neuner)
Newsgroups: comp.arch
Subject: Re: thread vs process
Date: Fri, 19 Jan 2024 12:16:24 -0500
Organization: i2pn2 (i2pn.org)
Message-ID: <gcblqitlvnkq50vbi631gb59ekifh479hr@4ax.com>
References: <uoamkg$2gshh$1@dont-email.me> <uoc42t$2ogov$2@dont-email.me> <uoc81a$1f6p$2@gal.iecc.com> <uoc8lk$2paej$1@dont-email.me> <pvvjqil90k12ejl2b7vv70u8atukfvvu4h@4ax.com> <uod490$30h1g$4@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org;
logging-data="4034508"; mail-complaints-to="usenet@i2pn2.org";
posting-account="h5eMH71iFfocGZucc+SnA0y5I+72/ecoTCcIjMd3Uww";
User-Agent: ForteAgent/8.00.32.1272
X-Spam-Checker-Version: SpamAssassin 4.0.0
 by: George Neuner - Fri, 19 Jan 2024 17:16 UTC

On Fri, 19 Jan 2024 06:19:12 -0000 (UTC), Lawrence D'Oliveiro
<ldo@nz.invalid> wrote:

>On Thu, 18 Jan 2024 23:55:01 -0500, George Neuner wrote:
>
>> I think John may be assuming that a CPU/core runs only one thread at a
>> time ... which isn't necessarily true.
>
>Those “hardware threads” are probably best described as “virtual CPUs”.
>They have nothing to do with threads versus processes in the software
>sense. They are a way of sharing functional units to make it look almost,
>but not quite, like separate CPUs.

That's quite true. The point I was making was that multiple threads
of the same process can be running simultaneously even on the same
core.

Re: thread vs process

<okblqip2t2gnhuu2fiqr958mfkvh62qvs6@4ax.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=36954&group=comp.arch#36954

  copy link   Newsgroups: comp.arch
Path: i2pn2.org!.POSTED!not-for-mail
From: gneuner2@comcast.net (George Neuner)
Newsgroups: comp.arch
Subject: Re: thread vs process
Date: Fri, 19 Jan 2024 12:28:10 -0500
Organization: i2pn2 (i2pn.org)
Message-ID: <okblqip2t2gnhuu2fiqr958mfkvh62qvs6@4ax.com>
References: <uoamkg$2gshh$1@dont-email.me> <uoc42t$2ogov$2@dont-email.me> <uoc81a$1f6p$2@gal.iecc.com> <uoc8lk$2paej$1@dont-email.me> <pvvjqil90k12ejl2b7vv70u8atukfvvu4h@4ax.com> <uod10m$30j2c$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Injection-Info: i2pn2.org;
logging-data="4035858"; mail-complaints-to="usenet@i2pn2.org";
posting-account="h5eMH71iFfocGZucc+SnA0y5I+72/ecoTCcIjMd3Uww";
User-Agent: ForteAgent/8.00.32.1272
X-Spam-Checker-Version: SpamAssassin 4.0.0
 by: George Neuner - Fri, 19 Jan 2024 17:28 UTC

On Thu, 18 Jan 2024 21:23:33 -0800, "Chris M. Thomasson"
<chris.m.thomasson.1@gmail.com> wrote:

>On 1/18/2024 8:55 PM, George Neuner wrote:
>> On Thu, 18 Jan 2024 14:28:03 -0800, "Chris M. Thomasson"
>> <chris.m.thomasson.1@gmail.com> wrote:
>>
>>> On 1/18/2024 2:17 PM, John Levine wrote:
>>>> According to Chris M. Thomasson <chris.m.thomasson.1@gmail.com>:
>>>>
>>>>> What about multiple multi-threaded processes? ;^)
>>>>
>>>> You know perfectly well that's architecturally impossible. See the
>>>> previous excellent answer.
>>>
>>> Multiple multi-threaded processes are impossible? Really? Since when...
>>
>> I think John may be assuming that a CPU/core runs only one thread at a
>> time ... which isn't necessarily true.
>>
>
>I wonder if I missed his main point?

If so I missed it too. John seemed to refer to Terje's answer which
is about what (virtual) CPUs are doing in either case.

Terje's answer is correct but incomplete: it appears to imply that
multiple threads cannot be doing the same task, and that multiple
processes must be doing the same task. Neither necessarily is true.

Re: thread vs process

<uoeh03$38rp1$1@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=36956&group=comp.arch#36956

  copy link   Newsgroups: comp.arch
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: cr88192@gmail.com (BGB)
Newsgroups: comp.arch
Subject: Re: thread vs process
Date: Fri, 19 Jan 2024 13:02:26 -0600
Organization: A noiseless patient Spider
Lines: 46
Message-ID: <uoeh03$38rp1$1@dont-email.me>
References: <uoamkg$2gshh$1@dont-email.me> <uoc42t$2ogov$2@dont-email.me>
<uoc81a$1f6p$2@gal.iecc.com> <uoc8lk$2paej$1@dont-email.me>
<pvvjqil90k12ejl2b7vv70u8atukfvvu4h@4ax.com> <uod10m$30j2c$1@dont-email.me>
<okblqip2t2gnhuu2fiqr958mfkvh62qvs6@4ax.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 19 Jan 2024 19:02:27 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="ee51b219ef2d96dca5a9be612bfb98ae";
logging-data="3436321"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+EDnyGHOOcJIt7r0LVn4vb"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:Hk6fVXgcJMhbKj/pdwynxXIuO5w=
In-Reply-To: <okblqip2t2gnhuu2fiqr958mfkvh62qvs6@4ax.com>
Content-Language: en-US
 by: BGB - Fri, 19 Jan 2024 19:02 UTC

On 1/19/2024 11:28 AM, George Neuner wrote:
> On Thu, 18 Jan 2024 21:23:33 -0800, "Chris M. Thomasson"
> <chris.m.thomasson.1@gmail.com> wrote:
>
>> On 1/18/2024 8:55 PM, George Neuner wrote:
>>> On Thu, 18 Jan 2024 14:28:03 -0800, "Chris M. Thomasson"
>>> <chris.m.thomasson.1@gmail.com> wrote:
>>>
>>>> On 1/18/2024 2:17 PM, John Levine wrote:
>>>>> According to Chris M. Thomasson <chris.m.thomasson.1@gmail.com>:
>>>>>
>>>>>> What about multiple multi-threaded processes? ;^)
>>>>>
>>>>> You know perfectly well that's architecturally impossible. See the
>>>>> previous excellent answer.
>>>>
>>>> Multiple multi-threaded processes are impossible? Really? Since when...
>>>
>>> I think John may be assuming that a CPU/core runs only one thread at a
>>> time ... which isn't necessarily true.
>>>
>>
>> I wonder if I missed his main point?
>
> If so I missed it too. John seemed to refer to Terje's answer which
> is about what (virtual) CPUs are doing in either case.
>
> Terje's answer is correct but incomplete: it appears to imply that
> multiple threads cannot be doing the same task, and that multiple
> processes must be doing the same task. Neither necessarily is true.

Though, another way to see it would be that:
Threads and processes can do whatever, and there need not be a hard
distinction.

Though, on most systems:
Threads run in the same address space;
Processes run in different address spaces, and typically represent
different programs.

Fun on a system where everything runs in one address space and the
distinction between threads and processes is a bit more ambiguous.

Re: thread vs process

<uoelq9$39ohi$1@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=36960&group=comp.arch#36960

  copy link   Newsgroups: comp.arch
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.arch
Subject: Re: thread vs process
Date: Fri, 19 Jan 2024 20:24:41 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <uoelq9$39ohi$1@dont-email.me>
References: <uoamkg$2gshh$1@dont-email.me> <uoc42t$2ogov$2@dont-email.me>
<uoc81a$1f6p$2@gal.iecc.com> <uoc8lk$2paej$1@dont-email.me>
<pvvjqil90k12ejl2b7vv70u8atukfvvu4h@4ax.com> <uod10m$30j2c$1@dont-email.me>
<okblqip2t2gnhuu2fiqr958mfkvh62qvs6@4ax.com> <uoeh03$38rp1$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 19 Jan 2024 20:24:41 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="a99d1106c5a63aadcf4a9426eaf9b9d4";
logging-data="3465778"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18NwQEX0fxAGFyb3qXy+H+4"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:RSkBrV0sac/Sffz+hZbb+OHKRhE=
 by: Lawrence D'Oliv - Fri, 19 Jan 2024 20:24 UTC

On Fri, 19 Jan 2024 13:02:26 -0600, BGB wrote:

> Though, on most systems:
> Threads run in the same address space;
> Processes run in different address spaces, and typically represent
> different programs.

The usual way of saying it is threads are “shared-everything” and
processes are (nearly) “shared-nothing”, at least by default.

On a POSIX system, you create one of the former with pthread_create(3),
and one of the latter with fork(2). But on Linux, both of these are
basically wrappers around clone(2)
<https://manpages.debian.org/2/clone.2.html>. And by using that call
directly, you get some interesting options for creating entities that are
somewhat in-between.

Re: thread vs process

<6fBqN.38062$IfLe.24498@fx36.iad>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=36962&group=comp.arch#36962

  copy link   Newsgroups: comp.arch
Path: i2pn2.org!i2pn.org!news.swapon.de!weretis.net!feeder6.news.weretis.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx36.iad.POSTED!not-for-mail
X-newsreader: xrn 9.03-beta-14-64bit
Sender: scott@dragon.sl.home (Scott Lurndal)
From: scott@slp53.sl.home (Scott Lurndal)
Reply-To: slp53@pacbell.net
Subject: Re: thread vs process
Newsgroups: comp.arch
References: <uoamkg$2gshh$1@dont-email.me> <uoc42t$2ogov$2@dont-email.me> <uoc81a$1f6p$2@gal.iecc.com> <uoc8lk$2paej$1@dont-email.me> <pvvjqil90k12ejl2b7vv70u8atukfvvu4h@4ax.com> <uod10m$30j2c$1@dont-email.me> <okblqip2t2gnhuu2fiqr958mfkvh62qvs6@4ax.com> <uoeh03$38rp1$1@dont-email.me> <uoelq9$39ohi$1@dont-email.me>
Lines: 26
Message-ID: <6fBqN.38062$IfLe.24498@fx36.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Fri, 19 Jan 2024 20:49:06 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Fri, 19 Jan 2024 20:49:06 GMT
X-Received-Bytes: 1911
 by: Scott Lurndal - Fri, 19 Jan 2024 20:49 UTC

Lawrence D'Oliveiro <ldo@nz.invalid> writes:
>On Fri, 19 Jan 2024 13:02:26 -0600, BGB wrote:
>
>> Though, on most systems:
>> Threads run in the same address space;
>> Processes run in different address spaces, and typically represent
>> different programs.
>
>The usual way of saying it is threads are “shared-everything” and
>processes are (nearly) “shared-nothing”, at least by default.
>
>On a POSIX system, you create one of the former with pthread_create(3),
>and one of the latter with fork(2). But on Linux, both of these are
>basically wrappers around clone(2)
><https://manpages.debian.org/2/clone.2.html>. And by using that call
>directly, you get some interesting options for creating entities that are
>somewhat in-between.

SVR4.2ES/MP had two versions of fork.

fork(2) would only create a single thread in the forked process
forkall(2) would create a new process with all the same threads as the
parent process.

The latter never gained any traction and when POSIX.4 came along, wasn't
accepted by the standard working group.

Re: thread vs process

<uoeskt$3audo$2@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=36965&group=comp.arch#36965

  copy link   Newsgroups: comp.arch
Path: i2pn2.org!i2pn.org!news.hispagatos.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.arch
Subject: Re: thread vs process
Date: Fri, 19 Jan 2024 22:21:17 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 14
Message-ID: <uoeskt$3audo$2@dont-email.me>
References: <uoamkg$2gshh$1@dont-email.me> <uoc42t$2ogov$2@dont-email.me>
<uoc81a$1f6p$2@gal.iecc.com> <uoc8lk$2paej$1@dont-email.me>
<pvvjqil90k12ejl2b7vv70u8atukfvvu4h@4ax.com> <uod10m$30j2c$1@dont-email.me>
<okblqip2t2gnhuu2fiqr958mfkvh62qvs6@4ax.com> <uoeh03$38rp1$1@dont-email.me>
<uoelq9$39ohi$1@dont-email.me> <6fBqN.38062$IfLe.24498@fx36.iad>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 19 Jan 2024 22:21:17 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="a99d1106c5a63aadcf4a9426eaf9b9d4";
logging-data="3504568"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19BXbStNZtIx0o4Con5i127"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:PouWnInfLI/CudTPtAZs6FEgypY=
 by: Lawrence D'Oliv - Fri, 19 Jan 2024 22:21 UTC

On Fri, 19 Jan 2024 20:49:06 GMT, Scott Lurndal wrote:

> SVR4.2ES/MP had two versions of fork.
>
> fork(2) would only create a single thread in the forked process
> forkall(2) would create a new process with all the same threads as the
> parent process.
>
> The latter never gained any traction and when POSIX.4 came along, wasn't
> accepted by the standard working group.

Big surprise ...

Did they try to explain what the point of it was?

Re: thread vs process

<uoetag$3amth$4@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=36966&group=comp.arch#36966

  copy link   Newsgroups: comp.arch
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: chris.m.thomasson.1@gmail.com (Chris M. Thomasson)
Newsgroups: comp.arch
Subject: Re: thread vs process
Date: Fri, 19 Jan 2024 14:32:48 -0800
Organization: A noiseless patient Spider
Lines: 34
Message-ID: <uoetag$3amth$4@dont-email.me>
References: <uoamkg$2gshh$1@dont-email.me> <uoc42t$2ogov$2@dont-email.me>
<uoc81a$1f6p$2@gal.iecc.com> <uoc8lk$2paej$1@dont-email.me>
<pvvjqil90k12ejl2b7vv70u8atukfvvu4h@4ax.com> <uod10m$30j2c$1@dont-email.me>
<okblqip2t2gnhuu2fiqr958mfkvh62qvs6@4ax.com> <uoeh03$38rp1$1@dont-email.me>
<uoelq9$39ohi$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 19 Jan 2024 22:32:48 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="44184edc633617af7fc7f7c89667ab4f";
logging-data="3496881"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18bgjpbW5InAme5O+lmq8GGD35epsNrqR4="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:+wQ9jWCkQvLdetiUNqLG+lusI+Y=
Content-Language: en-US
In-Reply-To: <uoelq9$39ohi$1@dont-email.me>
 by: Chris M. Thomasson - Fri, 19 Jan 2024 22:32 UTC

On 1/19/2024 12:24 PM, Lawrence D'Oliveiro wrote:
> On Fri, 19 Jan 2024 13:02:26 -0600, BGB wrote:
>
>> Though, on most systems:
>> Threads run in the same address space;
>> Processes run in different address spaces, and typically represent
>> different programs.
>
> The usual way of saying it is threads are “shared-everything” and
> processes are (nearly) “shared-nothing”, at least by default.

Intraprocess communication is dealing with multiple threads of a single
process.

Interprocess communication is dealing with multiple processes.

A program can be comprised of multiple processes that have multiple
threads within them...

Interprocess communication can be interesting, for instance think along
the lines of robust mutexes.

Lock-free and wait-free sync algorithms can be used for both,
Intraprocess and/or Interprocess sync...

>
> On a POSIX system, you create one of the former with pthread_create(3),
> and one of the latter with fork(2). But on Linux, both of these are
> basically wrappers around clone(2)
> <https://manpages.debian.org/2/clone.2.html>. And by using that call
> directly, you get some interesting options for creating entities that are
> somewhat in-between.

Re: thread vs process

<_mEqN.225659$7sbb.147233@fx16.iad>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=36968&group=comp.arch#36968

  copy link   Newsgroups: comp.arch
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx16.iad.POSTED!not-for-mail
X-newsreader: xrn 9.03-beta-14-64bit
Sender: scott@dragon.sl.home (Scott Lurndal)
From: scott@slp53.sl.home (Scott Lurndal)
Reply-To: slp53@pacbell.net
Subject: Re: thread vs process
Newsgroups: comp.arch
References: <uoamkg$2gshh$1@dont-email.me> <uoc42t$2ogov$2@dont-email.me> <uoc81a$1f6p$2@gal.iecc.com> <uoc8lk$2paej$1@dont-email.me> <pvvjqil90k12ejl2b7vv70u8atukfvvu4h@4ax.com> <uod10m$30j2c$1@dont-email.me> <okblqip2t2gnhuu2fiqr958mfkvh62qvs6@4ax.com> <uoeh03$38rp1$1@dont-email.me> <uoelq9$39ohi$1@dont-email.me> <6fBqN.38062$IfLe.24498@fx36.iad> <uoeskt$3audo$2@dont-email.me>
Lines: 20
Message-ID: <_mEqN.225659$7sbb.147233@fx16.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Sat, 20 Jan 2024 00:22:18 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Sat, 20 Jan 2024 00:22:18 GMT
X-Received-Bytes: 1647
 by: Scott Lurndal - Sat, 20 Jan 2024 00:22 UTC

Lawrence D'Oliveiro <ldo@nz.invalid> writes:
>On Fri, 19 Jan 2024 20:49:06 GMT, Scott Lurndal wrote:
>
>> SVR4.2ES/MP had two versions of fork.
>>
>> fork(2) would only create a single thread in the forked process
>> forkall(2) would create a new process with all the same threads as the
>> parent process.
>>
>> The latter never gained any traction and when POSIX.4 came along, wasn't
>> accepted by the standard working group.
>
>Big surprise ...
>
>Did they try to explain what the point of it was?

I don't recall the details. There wasn't much experience
with unix threads at the time ('90ish), other than the
digital ultrix threads. It's probably in one of the ES/MP
design documents I have squirrelled aways somewhere.

Re: thread vs process

<156567d7272e8d55d5300a496741e88a@www.novabbs.org>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=37001&group=comp.arch#37001

  copy link   Newsgroups: comp.arch
Date: Sun, 21 Jan 2024 21:41:55 +0000
Subject: Re: thread vs process
From: mitchalsup@aol.com (MitchAlsup1)
Newsgroups: comp.arch
X-Rslight-Site: $2y$10$bGSSeMUKl8QJe9IIEwOec.8cGr3KYkLYY2KNwdW3lu6ehe5TJ78KO
X-Rslight-Posting-User: ac58ceb75ea22753186dae54d967fed894c3dce8
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
User-Agent: Rocksolid Light
References: <uoamkg$2gshh$1@dont-email.me>
Organization: Rocksolid Light
Message-ID: <156567d7272e8d55d5300a496741e88a@www.novabbs.org>
 by: MitchAlsup1 - Sun, 21 Jan 2024 21:41 UTC

Marco Moock wrote:

> Hello!

> Some programs say that they are multi-process or multi-threaded.

> What is the exact difference here?

To actually try an answer your question::

Multi-process is a system that allows for multiple independent processes to share
one or more CPUs.

Multi-threaded is a system that allows for multiple processes and allows some of
them to share memory while occupying one or more CPUs in a system.

In some theoretical senses: multi-threaded is multiple threads within a single
address space (PThreads,...); although I soften that hard edge and allow even
processes which share memory through mmap() to be considered multi-threaded.

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor