thread limit question

Kevin D. Clark kclark at CetaceanNetworks.com
Mon Jun 2 13:25:11 EDT 2003


Bryan Kate <bryankate at metrobility.com> writes:

> ok, i have scoured the net for answers, but none come...
> 
> i am looking to develop an app with alot of threads, and before i do, i
> want to know hte threading limit under 2.4.

Let's cut to the chase here:  are you creating detached threads?  Can
this work in your environment?  Doing this would probably allow you to
create a lot more threads.

Hint:  pthread_attr_setdetachstate(&attrs, PTHREAD_CREATE_DETACHED);

Note: if you have to create *a lot* of threads all the time, it might
      be worthwhile to create your own thread-pool.

Regards,

--kevin
-- 
"Hope is the dream of a waking man."
--Aristotle




More information about the gnhlug-discuss mailing list