Thread help

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Salvatore Di Fazio

    #1

    Thread help

    Hi guys,
    I would make 3 threads for a client application.

    Tnx

  • Grant Edwards

    #2
    Re: Thread help

    On 2006-12-01, Salvatore Di Fazio <salvatore.difa zio@gmail.comwr ote:
    I would make 3 threads for a client application.
    You should use 4.

    --
    Grant Edwards grante Yow! My TOYOTA is built
    at like a... BAGEL with CREAM
    visi.com CHEESE!!

    Comment

    • Salvatore Di Fazio

      #3
      Re: Thread help

      Grant Edwards ha scritto:
      You should use 4.
      Yes, but I don't know how can I make a thread :)

      Comment

      • Grant Edwards

        #4
        Re: Thread help

        On 2006-12-01, Salvatore Di Fazio <salvatore.difa zio@gmail.comwr ote:
        Grant Edwards ha scritto:
        >
        >You should use 4.
        >
        Yes, but I don't know how can I make a thread :)
        Perhaps you should have said that earlier?

        Googling for "pythong threads" finds some useful info:

        Source code: Lib/threading.py This module constructs higher-level threading interfaces on top of the lower level_thread module. Availability: not WASI. This module does not work or is not available...


        If you have a process that you want to do several things at the same time, threads may be the answer for you. They let you set up a series of processes (or sub-processes) each of which can be run independently, but which can be brought back together later and/or co-ordinated as they run.



        --
        Grant Edwards grante Yow! Am I elected yet?
        at
        visi.com

        Comment

        • Salvatore Di Fazio

          #5
          Re: Thread help

          Grant Edwards ha scritto:
          Source code: Lib/threading.py This module constructs higher-level threading interfaces on top of the lower level_thread module. Availability: not WASI. This module does not work or is not available...


          If you have a process that you want to do several things at the same time, threads may be the answer for you. They let you set up a series of processes (or sub-processes) each of which can be run independently, but which can be brought back together later and/or co-ordinated as they run.

          http://heather.cs.ucdavis.edu/~matlo.../PyThreads.pdf
          Thank Edward,
          I didn't find the linuxgazette tutorial.
          Tnx

          Comment

          • Salvatore Di Fazio

            #6
            Re: Thread help

            Grant Edwards ha scritto:
            Source code: Lib/threading.py This module constructs higher-level threading interfaces on top of the lower level_thread module. Availability: not WASI. This module does not work or is not available...


            If you have a process that you want to do several things at the same time, threads may be the answer for you. They let you set up a series of processes (or sub-processes) each of which can be run independently, but which can be brought back together later and/or co-ordinated as they run.

            http://heather.cs.ucdavis.edu/~matlo.../PyThreads.pdf
            Thank Edward,
            I didn't find the linuxgazette tutorial before the post.
            Tnx

            Comment

            • Bjoern Schliessmann

              #7
              Re: Thread help

              Grant Edwards wrote:
              On 2006-12-01, Salvatore Di Fazio <salvatore.difa zio@gmail.com>
              >I would make 3 threads for a client application.
              You should use 4.
              I vote for just 1.

              Regards,


              Björn

              --
              BOFH excuse #236:

              Fanout dropping voltage too much, try cutting some of those little
              traces

              Comment

              • John Henry

                #8
                Re: Thread help

                Why stop there?


                Bjoern Schliessmann wrote:
                Grant Edwards wrote:
                On 2006-12-01, Salvatore Di Fazio <salvatore.difa zio@gmail.com>
                >
                I would make 3 threads for a client application.
                >
                You should use 4.
                >
                I vote for just 1.
                >
                Regards,
                >
                >
                Björn
                >
                --
                BOFH excuse #236:
                >
                Fanout dropping voltage too much, try cutting some of those little
                traces

                Comment

                • Gabriel Genellina

                  #9
                  Re: Thread help

                  At Friday 1/12/2006 17:26, Bjoern Schliessmann wrote:
                  I would make 3 threads for a client application.
                  >
                  You should use 4.
                  >
                  >I vote for just 1.
                  We all know that the correct answer is, and always has been, 42


                  --
                  Gabriel Genellina
                  Softlab SRL

                  _______________ _______________ _______________ _____
                  Correo Yahoo!
                  Espacio para todos tus mensajes, antivirus y antispam ¡gratis!
                  ¡Abrí tu cuenta ya! - http://correo.yahoo.com.ar

                  Comment

                  • Bjoern Schliessmann

                    #10
                    Re: Thread help

                    John Henry wrote:
                    Why stop there?
                    Stop where, after one thread? Different question: Why use many
                    threads? It adds complexity and overhead and forces you to think
                    about thread safety and reentrance.

                    Regards,


                    Björn

                    --
                    BOFH excuse #134:

                    because of network lag due to too many people playing deathmatch

                    Comment

                    Working...