LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices



Reply
 
Search this Thread
Old 05-10-2004, 11:17 AM   #1
eyalzm
LQ Newbie
 
Registered: May 2004
Posts: 1

Rep: Reputation: 0
Multithreaded System On 4 Cpu Linux Machine, process stuck on certain thread


hello All,

i've developed a process that uses 5-20 threads.
after several seconds from start of the program the process hangs
doing only one of the threads work - either main thread or others - but only one.

done the -D_REENTRANT using gcc c++ 3.2 linux redhat 9 .

what am i doing wrong? - on a single cpu machine it works fine
most of the times - there is no core and the process works but for only
one thread.

other info :
vi /proc/version
Linux version 2.4.20-8smp (bhcompile@porky.devel.redhat.com)
(gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)) #1 SMP Thu Mar 13 17:45:54 EST 2003

vi /proc/mdstat
Personalities :
read_ahead not set
unused devices: <none>

vi /proc/interrupts
CPU0 CPU1 CPU2 CPU3 CPU4 CPU5 CPU6 CPU7
0: 84695121 0 0 0 0 0 0 0 IO-APIC-edge timer
1: 1293 0 0 0 0 0 0 0 IO-APIC-edge keyboard
2: 0 0 0 0 0 0 0 0 XT-PIC cascade
8: 1 0 0 0 0 0 0 0 IO-APIC-edge rtc
10: 0 0 0 0 0 0 0 0 IO-APIC-level usb-ohci
12: 8459 0 0 0 0 0 0 0 IO-APIC-edge PS/2 Mouse
14: 6739226 0 1 0 0 0 0 0 IO-APIC-edge ide0
16: 15 0 0 0 0 0 0 0 IO-APIC-level aic7xxx
17: 62997425 0 0 0 0 0 0 0 IO-APIC-level eth0
21: 1328368 0 0 0 0 0 0 0 IO-APIC-level megaraid
NMI: 0 0 0 0 0 0 0 0
LOC: 84689958 84689956 84689937 84689921 84689956 84689956 84689956 84689956
ERR: 0
MIS: 0

vi /proc/modules
ide-cd 35772 0 (autoclean)
cdrom 34176 0 (autoclean) [ide-cd]
lp 9188 0 (autoclean)
parport 39072 0 (autoclean) [lp]
autofs 13684 0 (autoclean) (unused)
tg3 52904 1
ipt_REJECT 3928 0 (autoclean)
iptable_filter 2412 0 (autoclean)
ip_tables 15864 2 [ipt_REJECT iptable_filter]
keybdev 2976 0 (unused)
mousedev 5656 1
hid 22308 0 (unused)
input 6208 0 [keybdev mousedev hid]
usb-ohci 22216 0 (unused)
usbcore 82592 1 [hid usb-ohci]
ext3 73376 2
jbd 56336 2 [ext3]
megaraid 31212 3
aic7xxx 142548 0
sd_mod 13452 6
scsi_mod 110488 3 [megaraid aic7xxx sd_mod

EZ
 
Old 05-10-2004, 12:46 PM   #2
h/w
Senior Member
 
Registered: Mar 2003
Location: New York, NY
Distribution: Debian Testing
Posts: 1,286

Rep: Reputation: 45
hi,
maybe it'll help if u posted the code too?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Multithreaded RPC Servers for Linux.Thread-safe code writing dba477 Red Hat 1 08-25-2010 01:33 AM
Multithreaded process pausing but not deadlocking or crashing writejus1 Programming 3 09-16-2005 05:57 AM
multithreaded socket system JanusPaul Programming 2 08-12-2005 06:58 PM
Process System cpu rajesht Linux - General 1 05-19-2005 10:16 AM
"stealth" system process slamming cpu 360 Linux - General 4 11-24-2004 01:04 PM


All times are GMT -5. The time now is 04:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration