- To: "Jonathan Larmour" <jlarmour at redhat dot com>
- Subject: Re: About Multi-thread programming
- From: "Huang Qiang" <jameshq at liverpool dot ac dot uk>
- Date: Thu, 22 Mar 2001 16:57:39 -0000
- References: <009101c0b2e2$9fb3af00$2372fd8a@dikhuit> <3ABA2D05.706686B2@redhat.com>
Dear John:
Thanks a lot for your reply. I am using the example program from
red-hat. cgy_thread_delay(200), even I am using cgy_thread_delay(1) it
dosen't return ( it is blocked), if I change it to cyg_thread_delay(0), it
is ok but just one thread running ( I have created two thread with the same
priority) I think is maybe something wrong with the clock. But I am not sure
what's wrong with it. Could you please give me some advice on it?
Thanks a lot!
Best regards!
james
----- Original Message -----
From: "Jonathan Larmour" <jlarmour@redhat.com>
To: "Huang Qiang" <jameshq@liverpool.ac.uk>
Cc: "eCos discussion" <ecos-discuss@sources.redhat.com>
Sent: Thursday, March 22, 2001 4:49 PM
Subject: Re: About Multi-thread programming
> > Huang Qiang wrote:
> >
> > Dear John:
> > I am a developer currently using eCos and ARM 7TDMI , When I write
> > multi-thread program and call the cyg_thread_delay() function in the
> > thread,but it keeps waiting ( the thread is blocked and never return
back
> > again). I have tried to change the clock in the ecos configuration tool
> > but no effect. Could you give me some ideal about it.
> > Target: AEB
>
> There could be all sorts of reasons for that, e.g. that there is a higher
> priority thread now running and so the delayed thread won't run anyway. Or
> perhaps you are using the wrong units to delay - the delay is in clock
> ticks, not milliseconds or microseconds.
>
> Jifl
> --
> Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
> Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine