sched_yield() needed for pthread_cond_signal(..) to work?

2008-02-18 Thread Nelson Castillo
Hi. I'm using 2.6.23.14-rt14 on a i586 and I'm quite happy with the current results [1]. I'm writing because I have a problem with a source code that I thought should work. http://svn.arhuaco.org/svn/src/junk/trunk/threads/cond-signal-test.c In a PC (Debian 2.6.24 686 with no RT patches) it

Re: sched_yield() needed for pthread_cond_signal(..) to work?

2008-02-18 Thread Nelson Castillo
On Feb 18, 2008 1:25 PM, Luis Claudio R. Goncalves [EMAIL PROTECTED] wrote: Hi! Hi Luis, thanks for the reply. RT + sched_yield() are not really good friends... sched_yield() messes the work of the scheduler. Along with it, sched_tield() behaves in a different way under CFS. To get the old

Re: sched_yield() needed for pthread_cond_signal(..) to work?

2008-02-18 Thread Nelson Castillo
On Feb 18, 2008 7:51 PM, [EMAIL PROTECTED] wrote: Sorry for top-posting. This looks a lot like LTP code, which is full of similar assumptions Note also that in RT above RT prio 50 signals don't get delivered, and a program waiting for a signal can lock the machine. Sent via BlackBerry by