Re: python C-api and thread

Liste des GroupesRevenir à cl python 
Sujet : Re: python C-api and thread
De : grant.b.edwards (at) *nospam* gmail.com (Grant Edwards)
Groupes : comp.lang.python
Date : 06. Aug 2024, 04:34:05
Autres entêtes
Message-ID : <mailman.21.1722911646.2890.python-list@python.org>
References : 1 2
User-Agent : slrn/1.0.3 (Linux)
On 2024-08-05, aotto1968 via Python-list <python-list@python.org> wrote:

Is it possible to run two completely independent Python interpreters
in one process, each using a thread?
>
By independent, I mean that no data is shared between the
interpreters and thus the C API can be used without any other
"lock/GIL" etc.

No, not using any OS I've ever seen. The usual definition of "threads"
is that they share data, and the definition of "processes" is that
processes don't share data.

How exactly does what you're trying to do differ from runnig two
Python interpreters in two processes?

--
Grant




Date Sujet#  Auteur
5 Aug 24 * python C-api and thread8aotto1968
6 Aug 24 +* Re: python C-api and thread (Posting On Python-List Prohibited)2Lawrence D'Oliveiro
6 Aug 24 i`- Re: python C-api and thread (Posting On Python-List Prohibited)1aotto1968
6 Aug 24 +* Re: python C-api and thread4Grant Edwards
6 Aug 24 i`* Re: python C-api and thread3aotto1968
6 Aug 24 i +- Re: python C-api and thread1Barry Scott
7 Aug 24 i `- Re: python C-api and thread (Posting On Python-List Prohibited)1Lawrence D'Oliveiro
6 Aug 24 `- Re: python C-api and thread1Chris Angelico

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal