Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8920335
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T06:14:36+00:00 2026-06-15T06:14:36+00:00

I wonder what the different is between the options ‘THREADS’ and ‘PTHREAD’ when I

  • 0

I wonder what the different is between the options ‘THREADS’ and ‘PTHREAD’ when I compile perl 5.16 (and other version) from port source in freebsd?

Is the PTHREAD the posix-threading? (because -pthread) And if so, is it prefered to ‘THREADS’? (because it seems to be preselected) even on freebsd? And what is ‘THREADS’ (Kernel threads?) on the other hand? What are the pros and cons?

Could I use both in one installation? Is it sensefull?

There is not to much to find around in combination with perl, as far as I can see.

thanks a lot
jimmy

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T06:14:39+00:00Added an answer on June 15, 2026 at 6:14 am

    Using threads is as others have described it of course.

    The link with pthread means that your perl is built with the -pthread flag. This has a subtle but important effect. It means that when perl starts up, the libc data that maintains state for threads is initialized. This means that if your perl calls dlopen() on a library which is threaded, it will work properly, instead of hanging.

    PS. I’m actually the person who wrote and committed the PTHREAD option to the port. I actually discovered some perl modules which dlopen()’d some threaded libs and caused perl to hang. Took me a while to figure out why. Trust me, you want the PTHREAD option on. I’m actually thinking of removing the option to turn it off. For more info, see FreeBSD PR 163512 and 163878. We probably should push this option upstream so that perl uses this by default on FreeBSD. Anything that may call dlopen() should really be built with -pthread.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I wonder if there's a tool for automatic migrations between different DBMS's using the
I wonder about the difference between different data types in SQL Server to store
I wonder what is the different between Web Services and WCF? Aren´t they the
I'm quite new to Oracle's ADF and wonder what is the difference between ADF
I wonder if there is any support for different versions of class in JAXB.
I wonder if I can execute some programs for different cmd's using .bat file.
I wonder how apps like these generate screenshots for different browsers. Are they using
We have a PC for CSS coder, with 17 different browser versions. I wonder
wonder what's wrong <table id=tblDomainVersion> <tr> <td>Version</td> <td>No of sites</td> </tr> <tr> <td class=clsversion>1.25</td>
I have a postgresql table containing movements of different items (models) between warehouses. For

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.