Follow Slashdot blog updates by subscribing to our blog RSS feed

 



Forgot your password?
typodupeerror
×
Programming Operating Systems BSD IT Technology

libkse to libpthread switch on FreeBSD 26

Dan writes "Daniel Eischen says that libkse has been renamed back to libpthread and is now the default threads library. The gcc-pthread option has also been changed to link to libpthread instead of libc_r. For alpha and sparc64 machines, libkse has not been renamed and links are installed so that libpthread points to libc_r. FreeBSD GNOME team's Joe Marcus Clarke confirmed that the ports system will switch to using libpthread as the default for PTHREAD_LIBS shortly. A patch set is currently being tested, once that completes, the necessary port hooks will be in place to easily build applications linked to libpthread."
This discussion has been archived. No new comments can be posted.

libkse to libpthread switch on FreeBSD

Comments Filter:
  • by Ianoo ( 711633 ) on Monday February 02, 2004 @12:55PM (#8159611) Journal
    ... according to some, but I think it's rather useful. The old saying "Don't put your eggs in one basket" applies. (Friendly) Competition is good for open source software - witness KDE and Gnome's attempts to out-innovate eachother.

    I don't think for one minute that SCO's claims about Linux are legitimate, but imagine if they were: and some idiot judge ordered that Linux distribution was stopped. I think all the BSD trolls might be glad of an alternative kernel and userland under those circumstances!
    • BSD is not dying. I remember reading a survey not a month ago that surveyed some top ISPs. FreeBSD running Apache was, according to the article, the most popular and widely used ISP platform there is. Period.

      Linux is trying to "do a Windows" and be all things to all men as quickly as possible.

      FreeBSD is more like a working pick-up truck. They don't have a wide range of paint colors and picking up chicks with them can be hard - but they do what they are built for, and they do it very well.

      • They don't have a wide range of paint colors and picking up chicks with them can be hard - but they do what they are built for, and they do it very well.

        You mean staring at UFO's and conjugal relations with not-quite-second cousins?

        Sorry. Someone had to say it - might as well be me.

        More on point - if FreeBSD is dying - why is everyone so determined to point out that it is dying (which it isn't)? Wishful thinking?
        • More on point - if FreeBSD is dying - why is everyone so determined to point out that it is dying (which it isn't)? Wishful thinking?

          I think that, these days, the "BSD is dying" posts are more a traditional thing to do on Slashdot than any sort of expression of fact or desire.
        • Some Linux people like to think that it's just them, Windows, and the commercial Unixes.

          The trolls are probably a small number of people that have their own reasons that wouldn't make sense to us. As for the rest... I have a friend that thinks Linux will gradually force everything out because it's good enough at everything, rather than really good at any particular thing. He's not a zealot, but that's what he thinks. I think that's a common attitude.

          (many) Linux supporters see the OS world as a tri

          • I agree with your friend. Linux doesn't have to be the best at everything to relegate almost everything else to bargain bin status. Of course I doubt it's going to force windows out any time soon but there's room for it to just wander around dominating everything. Its desktop market share is increasing (from nothing to just over nothing, so far) and it's made huge inroads in both the server and embedded markets. Linux scales pretty well from the very small to the fairly large.

            Ultimately I see it all but c

      • <i>Linux is trying to "do a Windows" and be all things to all men as quickly as possible.</i>

        This statement doesn't make sense. It implies that there is one group taking an operating kernel and trying to stretch it out everywhere?

        LOTS of people are trying to take various distributions of systems running on linux and making it do everything.

  • In translation... (Score:5, Informative)

    by edhall ( 10025 ) <slashdot@weirdnoise.com> on Monday February 02, 2004 @03:08PM (#8161124) Homepage

    "Kernel threads" will now be the default instead of "user threads." (Many BSDers cringe at this use of the term "kernel threads," since to them it represents the misapplication of a term apropriate only to a thread that runs entirely within the kernel. But the above is a usage common in the Linux world.)

    This is a key step on the way to finishing the work for FreeBSD 5 and moving on to FreeBSD 6. It incorporates a highly sophisticated (some would say over-sophisticated) M:N threading system; this is where a new kernel-scheduled context is created only for threads that the userland scheduler thinks may block as opposed to having a kernel context for each thread like Linux does. It remains to be seen if the theoretical advantages of this approach will be turned into real-world advantages. I suspect that it will be a while before we know; although libkse has proven stable of late, there will be lots of additional experience acquired now that it is the default and no doubt this will result in further tuning.

    Congrats to the FreeBSD team! This and the (not entirely unrelated) SMPng subsystem were the biggest steps on the way to getting FreeBSD 5 ready to take the FreeBSD mantle. It was a gamble going this route rather than the "safe" alternative of a 1:1 model, and there were times when a number of folks wondered if libkse would ever be finished. Well, now it is!

    -Ed
    • Re:In translation... (Score:1, Informative)

      by Anonymous Coward
      Well, the M:N approach has already been done well on Solaris, so it's not really a mystery what the pros/cons are. On Linux, the M:N approach was rejected because the performance advantages were non-existant. LWPs are light enough on Linux that presumably the extra overhead of mapping U-threads to K-threads was counter-productive. In any case, Linux application developers are warned against creating excessive numbers of K-threads in the first place.

      Despite all those arguments, I think an M:N model is st
      • Linux 2.6 uses NGPT (next gen posix threads), which is an M:N system.

        LinuxThreads was 1:1 but is now deprecated.

"Protozoa are small, and bacteria are small, but viruses are smaller than the both put together."

Working...