Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Help With this ERROR:QThread::start: Thread creation error

Help With this ERROR:QThread::start: Thread creation error

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 3.1k Views 1 Watching
  • 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.
  • A Offline
    A Offline
    analyst009
    wrote on last edited by
    #1

    Hi,

    I am creating many threads (800) on Linux and getting error "QThread::start: Thread creation error". On my system, OS limit for max thraed is pretty high but still I am getting the error. What can I do resolve it? Is there any way to increase the max thread count for QT?

    Any pointer will be very helpful.

    Thanks & Regards,
    Chandan

    1 Reply Last reply
    0
    • G Offline
      G Offline
      giesbert
      wrote on last edited by
      #2

      Hi analyst009,

      why do you want to create 800 threads? That does not make any sense. It costs resources, time (for thread switching etc.) and brings no advantage.

      Could you explain a bit more, what you want to achieve? For me (without knowing the background of your app) it sounds like a design problem of your app...

      Nokia Certified Qt Specialist.
      Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

      1 Reply Last reply
      0
      • F Offline
        F Offline
        florent.revelut
        wrote on last edited by
        #3

        Hello

        I sometime used that much thread just to burst API calls on supposed thread-safe API (robustness testing). The more thread, the more risk to bump into a race condition...
        Not common use, but it can happen (note, I never tried with QThread however)

        1 Reply Last reply
        0
        • A Offline
          A Offline
          analyst009
          wrote on last edited by
          #4

          Hi Gerolf,

          Thanks for the reply.
          This is an application used for testing some thing which needs to create 800 threads.

          Thanks & Reagrds,
          Chandan

          [quote author="Gerolf" date="1301644140"]Hi analyst009, why do you want to create 800 threads? That does not make any sense. It costs resources, time (for thread switching etc.) and brings no advantage. Could you explain a bit more, what you want to achieve? For me (without knowing the background of your app) it sounds like a design problem of your app...[/quote]

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved