Embedding and threads ?
Kragen Sitaker
kragen at pobox.com
Mon Jun 10 17:43:30 EDT 2002
More information about the Python-list mailing list
Mon Jun 10 17:43:30 EDT 2002
- Previous message (by thread): Embedding and threads ?
- Next message (by thread): Embedding and threads ?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Bo Lorentsen <bl at netgroup.dk> writes: > Ok, I think my problem is that I try to model my code around a thread > model (to keep things clear), and I got confussed about the way Python > did things, as I somehow assumed it had a more strit forward thread > model (ala : 1 thread =3D 1 interpreter state). > > I will use Python for this project as long as what I do only need a > single thread model, and when I need more than that I'll se what to do > about it :-) It sounds like you want processes, not threads. Assuming you're not on Microsoft Windows, os.fork() will give you one Python interpreter state per process. Different processes have to make special arrangements to communicate, though, through explicitly shared memory or explicit channels.
- Previous message (by thread): Embedding and threads ?
- Next message (by thread): Embedding and threads ?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list