* Running Two Threads
@ 2005-04-08 5:44 Raghu
0 siblings, 0 replies; only message in thread
From: Raghu @ 2005-04-08 5:44 UTC (permalink / raw)
To: I have a ecos
Hi All,
I wanted a minimal command line interface in eCOS. So
I took the "Redboot" parser and command interface and
implemented some commands. I have a IXP425 based
board.
When I use the call "cyg_user_start" within which I
have all my command line processing, the application
works fine.
But within "cyg_user_start" if I spawn a thread and
due the command line processing within this thread, it
does not give any o/p on the console and the thread
seems to be suspended.
But I have spawn a "dummy" thread, the dummy thread
runs fine.
The "cyg_io_read" & "cyg_io_write" are documented to
be "blocking calls" but I tried with setting the
option, CYGOPT_IO_SERIAL_SUPPORT_NONBLOCKING in
ecos.ecc and also "cyg_io_set_config" but with no
significance.
Any clues please ? TIA.
Regards,
Raghu
RedBoot> go
Launching Command Line Interface
Begining dummy thread 1
ID Name Priority State
0x0001 Idle Thread 31 Running
0x0002 main 10 Excited
0x0003 Command Line 15 Running
0x0004 Dummy Thread 15 Running
Command line 0
T600 Command Line Interface, version
1.0
Built on Apr 8 2005 10:55:41
Read Blocking = 0x0
Write Blocking = 0x0
Read Blocking = 0x0
Write Blocking = 0x0
ecos>
ID Name Priority State
0x0001 Idle Thread 31 Running
0x0002 main 10 Excited
0x0003 Command Line 15 Running
0x0004 Dummy Thread 15 Running
__________________________________
Do you Yahoo!?
Yahoo! Personals - Better first dates. More second dates.
http://personals.yahoo.com
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-04-08 5:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-08 5:44 Running Two Threads Raghu
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).