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: FreeBSD is system scope threads capable
Type: Stage:
Components: Build Versions: Python 2.4
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: hyeshik.chang Nosy List: hyeshik.chang, loewis, valdiic
Priority: normal Keywords: patch

Created on 2006-01-04 14:53 by valdiic, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
python24.thread_pthread.freebsd5.patch valdiic, 2006-01-04 14:53 Patch for Python2.4 thread_pthread.h. Disables checking against FreeBSD.
Messages (3)
msg49258 - (view) Author: Valts (valdiic) Date: 2006-01-04 14:53
I was a little bit disapointed when I mentioned that 
Python 2.4 uses libpthread library on FreeBSD 5 but 
avoids using system scope threads. I tried digging 
google to clarify why it is so and found out that it 
was because one of threading regression tests 
(test_threaded_import) failed on FreeBSD 5 (https://
sourceforge.net/tracker/?
func=detail&atid=305470&aid=902444&group_id=5470). I 
compiled Python on my FreeBSD 5.4-RELEASE-p8 and ran 
all the regression tests (I executed regrtest.py) and 
saw no errors at all. I tried test_threaded_import and 
the test was successful.
I don't see any reason why to avoid using system scope 
threads specially on FreeBSD. I know that using 
userland scope threads is quite faster because there is 
no need for kernel activities in context switching. But 
as far as I know most of servers (where speed is 
important) are SMP boxes. Userland scope threads don't 
use capabilities of multiple CPU's, so it should be 
reasonable to use system scope threads.
To make it even better it could be good idea to make 
use of configuration parameter which determines which 
kind of threads has to be used. Since I'm not autoconf 
guru I made a patch which just removes checking against 
FreeBSD in thread_pthread.h

Regards,
Valts.

mailto:valdiic@one.lv
msg49259 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2006-01-14 18:27
Logged In: YES 
user_id=21627

perky, you created the original patch. can you please review
this one?
msg49260 - (view) Author: Hyeshik Chang (hyeshik.chang) * (Python committer) Date: 2006-03-23 12:36
Logged In: YES 
user_id=55188

Fixed in r43249. Thank you for the report!
History
Date User Action Args
2022-04-11 14:56:14adminsetgithub: 42762
2006-01-04 14:53:37valdiiccreate