[rhn-users] linux thread problem

Henrik Johansson henrik at vocab.se
Thu May 5 11:52:15 UTC 2005


Hi,

I have seen this on systems with older kernels.
Before proper thread support was added.

The same behaviour with fork i have not seen...

Kan you upgrade your kernel?

/ Henrik

-----Original Message-----
From: rhn-users-bounces at redhat.com
[mailto:rhn-users-bounces at redhat.com]On Behalf Of Ashmi Bhanushali
Sent: den 5 maj 2005 06:06
To: rhn-users at redhat.com
Subject: [rhn-users] linux thread problem


hi all...

i m trying to use threads on linux and facing a strange problem...

i m facing a problem while using pthread() ...i faced the same problem
with fork()...

when i create 2 threads input_thread and output_thread... i noticed
something strange... one thread gets executed only after the other
thread waits for something or stops its execution.. if the running
thread has something to execute then the other thread never gets turn
to do anything, no matter how much time the running thread takes..

i was using pthreads and saw this problem... so i wrote a small code
using fork() and even fork gave me same problem... hence i ran my
fork() code on a sun machine where i didnt see that problem...

is there any setting in lunix which i need to do before i try to use
thread???

kindly reply asap...

thanks..
ashmi

_______________________________________________
rhn-users mailing list
rhn-users at redhat.com
https://www.redhat.com/mailman/listinfo/rhn-users




More information about the rhn-users mailing list