[KLUG Programming] Pthreads problem
Peter Buxton
programming@kalamazoolinux.org
Wed, 31 Dec 2003 00:24:51 -0500
On Tue, Dec 30, 2003 at 11:01:09AM -0500, Alan Mink was only escaped
alone to tell thee:
> I'm having some shared memory/size (??) problems using threads. Is
> POSIX threads under Linux stable?
What version of Linux? As I recall, Red Hat 9.0 backported the new
Native POSIX Thread Library (NPTL) to 2.4. That might have bugs.
Remember that Linuxthreads != pthreads. There is some mapping to get one
to match the other. The new NPTL implementation closes this gap.
> I originally had very large data arrays over 136 MBytes. I had reduced
> it to around 70 MBytes. Just yesterday, for debugging, I reduced it
> to ~100 KBytes and it seemed to work!?!? Could there be some memory
> limitations involved?
What is listed in '/proc/sys/kernel/shmmax'? On my 2.6 kernel, it is
33554432 (32 MB).
--
What women and psychologists call 'dropping
your armor,' we call 'baring our neck.'