public inbox for ecos-devel@sourceware.org
 help / color / mirror / Atom feed
* Twothreads.c without cyg_thread_delay
@ 2006-11-24 13:29 David Luca
  2006-11-24 17:25 ` Sven Mulka
  0 siblings, 1 reply; 2+ messages in thread
From: David Luca @ 2006-11-24 13:29 UTC (permalink / raw)
  To: ecos-devel, ecos-discuss

Hello,
Today I started twothreads.c application, but I
replaced printf(not working yet on my platform) with
leds. My question is, without the cyg_thread_delay, is
it possible to run concurrently the two threads?
Because if I comment this function, only one task is
running, I can see that only one led is turn on and
off.
Thank you in advance,
David Luca.


 
____________________________________________________________________________________
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Twothreads.c without cyg_thread_delay
  2006-11-24 13:29 Twothreads.c without cyg_thread_delay David Luca
@ 2006-11-24 17:25 ` Sven Mulka
  0 siblings, 0 replies; 2+ messages in thread
From: Sven Mulka @ 2006-11-24 17:25 UTC (permalink / raw)
  To: ecos-devel

Hello David,

your problem sounds like that your scheduler dos not work.
Please check the correct working of the RTC (used as eCos Clock)
on your Board. If it dos not work then the scheduler can only 
switch the threads by using cyg_thread_delay().

Best regards
Sven Mulka

------------------------------------------------------------
Software & Data Communication   Tel:      +49(0)351/4640-756
Ing.-Büro Mulka                 Fax:      +49(0)351/4640-703
Zeunerstr. 38                   
01069 Dresden                   Internet: www.ib-mulka.de
------------------------------------------------------------

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-11-24 17:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-24 13:29 Twothreads.c without cyg_thread_delay David Luca
2006-11-24 17:25 ` Sven Mulka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).