Re: Default Posix thread stack size

2007-09-07 Thread Valery Masiutsin
> I usually have: > > #ifdef __OpenBSD__ > size_t stacksize; > pthread_attr_getstacksize(&attr, &stacksize); > pthread_attr_setstacksize(&attr, stacksize * 2); > #endif > > in my threaded stuff. > Hello. AFAIK Posix says nothing about default thread stack. So you should use pthread_at

Re: Default Posix thread stack size

2007-09-07 Thread John Wright
On Fri, Sep 07, 2007 at 10:47:28AM +0200, Raimo Niskanen wrote: > We just discovered that it appears the default Posix thread > stack size is 64KByte for OpenBSD (4.1). That seems a bit slim. > To compare I recall Solaris8 has got 2MByte as default. > > Can I assume all C libr

Default Posix thread stack size

2007-09-07 Thread Raimo Niskanen
We just discovered that it appears the default Posix thread stack size is 64KByte for OpenBSD (4.1). That seems a bit slim. To compare I recall Solaris8 has got 2MByte as default. Can I assume all C library routines in OpenBSD are tuned to be careful with stack usage? Is there some system