[arm-gnu] Re: Problems with pthread on ARM/PXA270
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[arm-gnu] Re: Problems with pthread on ARM/PXA270
- To: Juergen Schindele <schindele@xxxxxxxxx>
- Subject: [arm-gnu] Re: Problems with pthread on ARM/PXA270
- From: Daniel Jacobowitz <dan@xxxxxxxxxx>
- Date: Wed, 16 Sep 2009 10:40:51 -0400
On Wed, Sep 16, 2009 at 09:26:01AM +0200, Juergen Schindele wrote:
> Hello all,
> we tried to implement a thread based software on our PXA270 based platform but
> we had trouble with pthreads. So i modyfied a tiny progam to test. This little progam creates
> 10 threads and each thread does print something (an index an a pointer to itself).
>
> On my PC with Suse 11.0 Linux (kernel 2.6.27) this works fine as supposed to.
> Each thread has his turn and print his own values.
>
> But on our pxa270 platform the thread switch does not (or really rarely) happen
> and only one thread is printing always the same values. So i suppose thread
> switching is not working!
>
> Any hints or experiences are welcome !!!
It's just a wild guess, but check your sched_clock implementation. I
fixed a similar problem in QEMU last week; the kernel used to function
OK with sched_clock always returning zero, but some time between
2.6.25 and 2.6.28 became dependent on it.
--
Daniel Jacobowitz
CodeSourcery