public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] cyg_thread_delay() - linux syn. target - v1.3.1
@ 2000-09-12  5:55 Arvind Chauhan
  0 siblings, 0 replies; only message in thread
From: Arvind Chauhan @ 2000-09-12  5:55 UTC (permalink / raw)
  To: ecos-discuss

Hi,
I am running a modified twothreads example on a linux target,
One of the thread is being run in an infinite loop with a thread delay.
After the delay, other threads are resumed.
While executing, at times the program halts.
Please provide some insights on the cause and how to catch the cause of such
behaviour.
Thanks,
/ac
----pseudo--
thrd_a, thrd_b, thrd_c
{
mutex_lock
printf
mutex_unlock
}

thrd_d
{
while[1]
--
mutex_lock
printf
mutex_unlock
cyg_thread_delay(200)
resume thrd_a;
resume thrd_b;
resume thrd_c;
--
}

cyg_user_start
{
mutex init
create thrd_a, b, c, d.
resume thrd_a, b, c, d.
cyg_scheduler_start();
}
stack size for each thrd is 4096 chars. tree is built with default template
and USE_ASSERT added.


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-09-12  5:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-09-12  5:55 [ECOS] cyg_thread_delay() - linux syn. target - v1.3.1 Arvind Chauhan

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).