This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

cyg_thread_delay() - linux syn. target - v1.3.1


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]