multi-threaded app hangs

S

Sudipto Biswas

Hi,

I have written a multi-threaded (about 8 threads) networking application with a text-mode interface. It writes to a trace-file in the background. Additionally I have also given some debug prints to STDOUT from different threads. The program runs fine on Python-2.2.2/RH 8.0.

But when I move to Python-2.2.2/RH-9.0 the program behaves oddly. It stops suddenly and *does not* give the continueous stream of expected output in STDOUT and tracefile.

On pressing ctrl-Z the hanged program gets suspended. On giving 'fg' command the suspended program comes to foreground, AND AGAIN RUNS FOR SOMETIMES (generates stream of text in STDOUT and tracefile) before it hangs again. This way ctrl-Z and 'fg' if pressed on hang, helps the program to run further.

I am using the 'Thread' class to create objects which run as separate threads.

Has anybody faced a similar problem?

Rgds,
Sudipto
 
P

Peter Hansen

Sudipto said:
I have written a multi-threaded (about 8 threads) networking application [snip]
The program runs fine on Python-2.2.2/RH 8.0.

But when I move to Python-2.2.2/RH-9.0 the program behaves oddly.
[snip]

I vaguely recall a comment somewhere about the threading model changing
in Redhat 9.0. Could this be the cause? Maybe somebody else will have
a specific reference, or you could try Google.

-Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,997
Messages
2,570,241
Members
46,831
Latest member
RusselWill

Latest Threads

Top