This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Prefer LinuxThreads, if available, over Pth
Type: Stage:
Components: None Versions:
process
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: gstein Nosy List: fdrake, flight, gstein
Priority: normal Keywords: patch

Created on 2000-07-03 14:46 by flight, last changed 2022-04-10 16:02 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
None flight, 2000-07-03 14:46 None
Messages (5)
msg33009 - (view) Author: Gregor Hoffleit (flight) Date: 2000-07-03 14:46
 
msg33010 - (view) Author: Fred Drake (fdrake) (Python committer) Date: 2000-07-03 16:16
Requested explanation of why this is desirable.
msg33011 - (view) Author: Gregor Hoffleit (flight) Date: 2000-07-04 14:42
An elaboration of the pros and cons of Pth over LinuxThreads will follow later. I guess there will be no clear preferred choice. In this case, it would be nice if it was possible to choose the threading library used at configure time (e.g. configure --with(out)-pth to force/disable Pth use).
msg33012 - (view) Author: Gregor Hoffleit (flight) Date: 2000-07-05 11:22
For the current shortcomings of GNU Pth with Python also cf. my Bug report #383 and Oli Andrich's #296.

LinuxThreads are a kernel-space implementation of POSIX threads. GNU Pth is a user-space implementation. As a user-space implementation, it tends to offer better performance (less penalty for threads-switching) and portability, but can't provide real concurrency. That's why the test_thread (cf. #383) runs really slow, and that's also why the readline problem (cf. my bug report #196) goes away with Pth threads.

For the sake of concurrency, I'd clearly prefer LinuxThreads. Pth should be a fallback if nothing else is available I guess.

Having said that, I still would  prefer if Pth were a configure-time option --use-pth so that I could override any other threading system.
msg33013 - (view) Author: Greg Stein (gstein) * (Python committer) Date: 2000-07-05 10:52
I've applied this patch (basically). I moved the Pth check even further down.
History
Date User Action Args
2022-04-10 16:02:03adminsetgithub: 32510
2000-07-03 14:46:41flightcreate