[rhn-users] linux thread problem

Ashmi Bhanushali ashmib at gmail.com
Thu May 5 04:05:42 UTC 2005


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




More information about the rhn-users mailing list