thread and portability Unix/Linux

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • awalter1

    thread and portability Unix/Linux

    Hi,
    I have a Python application that runs under HPUX 11.11 (then unix). It
    uses threads :
    from threading import Thread
    # Class Main
    class RunComponent(Th read):

    My application should run under Linux (red hat 3 ou 4) and I read that
    differences exist between the implementation of threads : on HPUX
    11.11 there is CMA (ou DCE) threads and on Linux POSIX thread. Do you
    think that my Python application should be modified or may be such
    differences are hidden by the python interpreter ?
    In other terms, do I get some risks on this particular aspect by
    porting my application ?
    Thanks a lot

    PS: If you are aware of other risk of porting, I am interested too.

  • Joshua J. Kugler

    #2
    Re: thread and portability Unix/Linux

    awalter1 wrote:
    Hi,
    I have a Python application that runs under HPUX 11.11 (then unix). It
    uses threads :
    from threading import Thread
    # Class Main
    class RunComponent(Th read):
    >
    My application should run under Linux (red hat 3 ou 4) and I read that
    differences exist between the implementation of threads : on HPUX
    11.11 there is CMA (ou DCE) threads and on Linux POSIX thread. Do you
    think that my Python application should be modified or may be such
    differences are hidden by the python interpreter ?
    In other terms, do I get some risks on this particular aspect by
    porting my application ?
    Thanks a lot
    >
    PS: If you are aware of other risk of porting, I am interested too.
    The Python threading model abstracts from the underlying OS threading, so
    there should be no need to change anything (AFAIK).

    j

    --
    Joshua Kugler
    Lead System Admin -- Senior Programmer

    PGP Key: http://pgp.mit.edu/  ID 0xDB26D7CE

    --
    Posted via a free Usenet account from http://www.teranews.com

    Comment

    • awalter1

      #3
      Re: thread and portability Unix/Linux

      On 7 mar, 21:07, "Joshua J. Kugler" <jos...@eeinter net.comwrote:
      awalter1 wrote:
      Hi,
      I have a Python application that runs under HPUX 11.11 (then unix). It
      uses threads :
      from threading import Thread
      # Class Main
      class RunComponent(Th read):
      >
      My application should run under Linux (red hat 3 ou 4) and I read that
      differences exist between the implementation of threads : on HPUX
      11.11 there is CMA (ou DCE) threads and on Linux POSIX thread. Do you
      think that my Python application should be modified or may be such
      differences are hidden by the python interpreter ?
      In other terms, do I get some risks on this particular aspect by
      porting my application ?
      Thanks a lot
      >
      PS: If you are aware of other risk of porting, I am interested too.
      >
      The Python threading model abstracts from the underlying OS threading, so
      there should be no need to change anything (AFAIK).
      >
      j
      >
      --
      Joshua Kugler
      Lead System Admin -- Senior Programmerhttp://www.eeinternet. com
      PGP Key:http://pgp.mit.edu/ ID 0xDB26D7CE
      >
      --
      Posted via a free Usenet account fromhttp://www.teranews.co m- Masquer le texte des messages précédents -
      >
      - Afficher le texte des messages précédents -
      Marvellous !
      Thank you

      Comment

      Working...