pthread_set_concurrency & deadlock

Ask a Question related to Sun Solaris, Design and Development.

  1. #1

    Default pthread_set_concurrency & deadlock

    Hi,

    We are facing a strange problem with pthread_set_concurrency. We have
    spawned "n" number of threads & are setting
    pthread_set_conccurrency(n). But this leads to application
    hanging.(application is responsive to ctrl-c)

    By increasing pthread_set_concurrency(n+10), the deadlock problem
    seems to be resolved.

    Our application is running on Solaris 8.

    As 1:1 ratio doesn't work fine, any idea how to give a suitable value?

    Regards
    Indira
    Indira Guest

  2. Similar Questions and Discussions

    1. Deadlock?
      I have a multi-threaded http server. Sometimes, it gets into a state where it stops responding to requests, and if I press Ctrl+C at the console it...
    2. Deadlock
      I am using DB2 v8 and JDBC type 2 driver (i.e. db2java.jar, not db2jcc.jar). I am using isolation level of CS, Cursor Stability. I hit a deadlock...
    3. COM Deadlock in W2k but not NT 4.0
      I have ASP code that calls a COM module to perform encryption functions. The code and COM modules have been working great for two years on an two...
    4. Deadlock in Solaris 8
      Hi, We have developed a "multi-threaded" application in Solaris 8 running in E-255 with 2 processor.The application hangs after running for...
    5. Sql Server Deadlock
      hi, Good Morning...While i am working with SQL Server with my application. That is while iam invoking more than two transaction, with payment...
  3. #2

    Default Re: pthread_set_concurrency & deadlock

    In <bb2f8e50.0307240759.77d822f0@posting.google.com > [email]indira1005@yahoo.com[/email] (Indira) writes:
    >Hi,
    >
    >We are facing a strange problem with pthread_set_concurrency. We have
    >spawned "n" number of threads & are setting
    >pthread_set_conccurrency(n). But this leads to application
    >hanging.(application is responsive to ctrl-c)
    >
    >By increasing pthread_set_concurrency(n+10), the deadlock problem
    >seems to be resolved.
    >
    >Our application is running on Solaris 8.
    >
    >As 1:1 ratio doesn't work fine, any idea how to give a suitable value?
    Does it help at all if, instead of using pthread_set_concurrency() to try
    to make the Solaris two-level threading implementation behave sensibly,
    you just use the Solaris 8 and 9 one-level threading implementation instead?

    See "ALTERNATE IMPLEMENTATION" in "man pthreads". (On Solaris 9 it's the
    default, so you don't even have to think about it; on Solaris 8 you have
    to refer to it explicitly).


    Thomas Maslen
    [email]maslen@wedgetail.com[/email]
    Thomas Maslen Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139