Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    pfSense multithreading use?

    Off-Topic & Non-Support Discussion
    3
    5
    1.3k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • JonathanLeeJ
      JonathanLee
      last edited by

      Does Netgate and pfSense use Multithreading???

      Mutithreads.JPG

      (Image: Simple Example of Multi Treading in Java)

      perfectnumbersthread.JPG

      (Image: thread 1)

      threadsstarting.JPG

      (Gate await 10 reached)

      This is a simple example of multi threading within Java I have each thread searching for a perfect number within blocks of numbers.

      Is it true that pfSense only uses one thread? With the newest arm processors why not use more threads?

      Make sure to upvote

      bmeeksB 1 Reply Last reply Reply Quote 0
      • bmeeksB
        bmeeks @JonathanLee
        last edited by bmeeks

        @jonathanlee said in pfSense multithreading use?:

        Does Netgate and pfSense use Multithreading???

        Is it true that pfSense only uses one thread? With the newest arm processors why not use more threads?

        Who told you that pfSense was single-threaded?

        pfSense is based on the FreeBSD operating system, which is multithreaded. In fact, it is almost impossible today to find a modern operating system that is not multithreaded. pfSense is really an operating system itself. It is a patched version of FreeBSD. And since FreeBSD is inherently multithreaded, so is pfSense.

        Some particular applications that run on a multithread operating system may themselves be single-threaded for various reasons. For example, the OpenVPN package binary is single-threaded. And when you use a PPPoE connection, the code that implements the virtual PPPoE adaptor is also single-threaded. But other applications running on the same pfSense box can be multithreaded.

        Suricata is multithreaded. The filterdns daemon that updates FQDN aliases is multithreaded. And there are many other examples running on pfSense.

        JonathanLeeJ 1 Reply Last reply Reply Quote 1
        • JonathanLeeJ
          JonathanLee @bmeeks
          last edited by

          @bmeeks interesting 🤔 thanks for the reply.

          Make sure to upvote

          1 Reply Last reply Reply Quote 0
          • bmeeksB
            bmeeks
            last edited by

            You stated in one of your other threads you are a student. It's good that you have an inquisitive mind. But you seem to be jumping to some ill-founded conclusions based on partial and/or incorrect knowledge of the subject at hand.

            Spend some time on Google researching modern operating systems and the trials and tribulations of multithreaded programming. There are many things you have yet to learn in this area ... ☺.

            1 Reply Last reply Reply Quote 1
            • M
              mamarika Banned
              last edited by

              This post is deleted!
              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.