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



  • 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



  • 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...



  • 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)



  • 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]


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.