Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
 
Reply to this topicStart new topic
> Is Posix Threads Under Linux 2.4, Stable?, shared memory prob under theads
alan
post Dec 29 2003, 06:43 PM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 1
Joined: 29-December 03
Member No.: 2,035



I'm having some shared memory (??) problems using threads. Is POSIX
threads under Linux stable? Is there on on-line user/discusion group
that may be able to shed some light on such problems.

Problem examples (under Linux 2.4 on an x86 platform):

One process w/ 5 threads seems to work, but It looks like 2 different
threads show 2 different values for the same global variable. Luckily
the "owner' thread has the correct value & the "user interface" thread
(read only) has the wrong value, not an out-of-date value

Another process w/ 4 threads Seg Faults on rcving data via a socket
"recv()" fct. I've built a non-thread version for testing other co-operating
code & it works fine. But the thread version still crashes immediately
when socket data is rcvd -- with no useful info from "gdb".

Thanks,
Alan
Go to the top of the page
 
+Quote Post
hughesjr
post Dec 29 2003, 07:31 PM
Post #2


Its GNU/Linuxhelp.net
*******

Group: Admin
Posts: 3,433
Joined: 25-July 03
From: Corpus Chrsiti, TX, USA
Member No.: 1,151



Stable is a relative term ... many programs won't run with the ntpl threads ... if you are using redhat 9, rhel 3 or fedora core, you can go back to the old way by adding this to your environment (or the script for the programs in question):

LD_ASSUME_KERNEL=2.4.1
for within a program start script

or

export LD_ASSUME_KERNEL=2.4.1
to make all progams by this user start in the Linuxthreads with floating stacks mode. Oracle database server requires this mode....


--------------------
Johnny Hughes
hughesjr@linuxhelp.net
Enterprise Alternatives: CentOS, WhiteBoxEL
Favorite Workstation Distros (in order): CentOS, Gentoo, Debian Sarge, Ubuntu, Mandrake, FedoraCore, Slackware, SUSE
Favorite Server Distros (in order): CentOS, WhiteBoxEL, Debian Sarge, Slackware, Mandrake, FedoraCore, Gentoo, SUSE
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 13th December 2017 - 05:45 PM