thread name length

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf thread name length

  • Creator
    Topic
  • #52836
    Highland Dave
    Participant

      when we started on Cloverleaf, an initial indication was not to have thread names longer than 16 characters.  The reason I remember is that on recovery or error db displays, whether command line or GUI, thread names greater than 16 characters are truncated.

      Does anyone know of any other reason to limit the tread name length?

    Viewing 4 reply threads
    • Author
      Replies
      • #75620
        Keith McLeod
        Participant

          hciconnstatus uses a format command defining the displayed length of the thread name. Some older programs made use of the output from hciconnstatus.

        • #75621
          Daniel Lee
          Participant

            Another reason is cosmetics.

          • #75622
            Jill Fredericks
            Participant

              How can the hciconnstatus command be modified to use 28 characters?

            • #75623
              Charlie Bursell
              Participant

                It’s a Tcl proc.  Go for it. 🙂

              • #75624
                Bob Richardson
                Participant

                  One and All,

                  We have been bugging Lawson/Healthvision support recently about thread name lengths as we would like to expand our thread names beyond the current self-imposed limit of 15 characters.

                  Yes… hciconnstatus can be modified simply by changing its format specification for field length (a TCL proc as Charlie notes); however, the hcidbdump utility still truncates the output of thread name to 15 characters.  We have built home-grown scripts and tools that depend on the accuracy of the thread name from its output (as well as from hciconnstatus).

                  Ok… now from Lawson/Healthcare support R & D:

                  At process startup, the engine uses the “site name”, “process name”, and “thread name” to create entries in the Raima database for each thread.  This total length must not exceed 48 characters otherwise you get problems or corruptions in the Raima database.  

                  And, from my old mentor of several years back on some 3.X platform, I was told (like a drill sargeant to a recruit) NEVER exceed 15 characters for a thread name because the engine may not be able to route your messages if the first 15 characters of more than one thread in the same process are identical.   Never confirmed or debunked this assertion so far.

                  So… I would say tread carefully here until at some day in the not too distant future the Cloverleaf gurus will tell all.

                  Enjoy.

              Viewing 4 reply threads
              • The forum ‘Cloverleaf’ is closed to new topics and replies.