public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Gary Thomas <gthomas@redhat.com>
To: Alfredo Knecht <aknecht@cimsi.cim.ch>
Cc: ecos-discuss@sourceware.cygnus.com
Subject: RE: [ECOS] Threading on EDB7211
Date: Sun, 11 Jun 2000 04:38:00 -0000	[thread overview]
Message-ID: <XFMail.000611053836.gthomas@redhat.com> (raw)
In-Reply-To: <3.0.5.32.20000611045816.00aa55f0@mailhost>

On 11-Jun-00 Alfredo Knecht wrote:
> Dear All,
> 
> Thread switching is not working.
> I am using an off-the-shelf configuration for ARM EDB7111-2, with the
> GDB_module stub on the board.
> Specifically, I tested with lcd_test.c, and kthread1.c.
> Only the first thread (in cyg_thread_create() calling order) is ever executed.
> A call to cyg_thread_delay() blocks, and cyg_thread_yield() does not cause
> rescheduling.
> Fidgeting with priorities does not help, either.
> Generally, single-thread code works.
> Must be that thread switching stays disabled in eCos, but since I am using
> a "standard" configuration, I would like to have a second opinion before
> embarking on a deep dive.
> 

Thread switching should work on this and all platforms.

Have you tried any of the standard tests and/or examples?  A good one to
try is the 'bin_sem2' test in the kernel.  This is an adaptation of the
classic dining philosophers and definitely relies on thread switching to
work properly.  On Linux, one would build/run this test like this:

  # ecosconfig new edb7211
  # ecosconfig tree
  # make tests
  # arm-elf-gdb install/tests/kernel/VERSION/tests/bin_sem2
     ... etc.

  reply	other threads:[~2000-06-11  4:38 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-06-10 19:55 Alfredo Knecht
2000-06-11  4:38 ` Gary Thomas [this message]
2000-06-12  1:19   ` Alfredo Knecht
2000-06-12  6:10     ` Gary Thomas
2000-06-12 12:51 Alfredo Knecht
2000-06-16  6:39 Rene.Affourtit
2000-06-16  7:03 ` Gary Thomas
2000-06-16  8:29 Alfredo Knecht
     [not found] ` <XFMail.000616095000.gthomas@redhat.com>
2000-06-16 12:29   ` Alfredo Knecht
2000-06-16 13:34     ` Gary Thomas
2000-06-19  0:04 Rene.Affourtit
2000-06-19  4:11 ` Gary Thomas
2000-06-19  4:42 Rene.Affourtit
2000-06-19  5:06 ` Gary Thomas
2000-06-19 11:55   ` Alfredo Knecht
2000-06-19 13:22     ` Gary Thomas
2000-06-19  5:24 Rene.Affourtit

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=XFMail.000611053836.gthomas@redhat.com \
    --to=gthomas@redhat.com \
    --cc=aknecht@cimsi.cim.ch \
    --cc=ecos-discuss@sourceware.cygnus.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).