Simple example of threading
Dirk Vleugels
dvl at de.uu.net
Thu Feb 24 10:22:27 EST 2000
Hi,
rmeegan at murlmail.com writes:
> [Thomas Weholt]
> There is something to be said for spawning new processes to handle
> server requests. In particular, parent processes can kill their
> children when they wander off and start misbehaving. Threads can't be
> killed by other threads, including the main thread of the process that
> spawned them.
Is this true? Under posix_threads there is pthread_cancel. This call
is used to 'cancel' misbehaving threads (blocking on certain system
calls (see doc)). The thread may ignore cancel requests, but this is
under user control.
Sadly, pthread_cancel is missing in python, dunno why.
> Good luck -
> - Robert
Cheers,
Dirk
--
Dirk.Vleugels at de.uu.net http://www.de.uu.net
Database Engineer UUNET Deutschland GmbH
More information about the Python-list
mailing list