[rhn-users] linux thread problem

Brian T. Brunner brian.t.brunner at gai-tronics.com
Thu May 5 13:40:19 UTC 2005


pthread_attr_setschedpolicy(&mumble, SCHED_RR)

Brian Brunner
brian.t.brunner at gai-tronics.com
(610)796-5838

>>> Ashmi Bhanushali <ashmib at gmail.com> 05/05/05 12:05AM >>>
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

*******************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept
for the presence of computer viruses.

www.hubbell.com - Hubbell Incorporated




More information about the rhn-users mailing list