[ECOS] question about twothreads.c

jiang jet jetjiang@hotmail.com
Thu Dec 14 23:41:00 GMT 2006


thank you so much^_^

jet

>From: J¨¹rgen Lambrecht <Jurgen.Lambrecht@tiscali.be>
>To: jiang jet <jetjiang@hotmail.com>
>CC: ecos-discuss@ecos.sourceware.org
>Subject: Re: [ECOS] question about twothreads.c
>Date: Thu, 14 Dec 2006 11:03:10 +0100
>
>jiang jet wrote:
>
> > I have found the answer of my question :)
> > anyway, thank you for viewing my question..
> >
> > still one question..how does ecos jump to "main" function??
> > defualt cyg_start just jump to cyg_user_start, but have no clue telling
> > me how it jumps to main??
>The main function is started by a C-library thread, see the ecos 
documentation:
>http://ecos.sourceware.org/docs-latest/ref/c-library-startup.html
> > thanks
> > jet
> >
> >
> >> From: "jiang jet" <jetjiang@hotmail.com>
> >> To: ecos-discuss@ecos.sourceware.org
> >> Subject: [ECOS] question about twothreads.c
> >> Date: Thu, 14 Dec 2006 16:12:11 +0800
> >>
> >> hi,all
> >>   I am porting ecos to one mips board, and it seems to be working now(
> >> I use some testcase to test it,work correctly).
> >>   and then I use /example/twothreads.c to have a test, the program
> >> doesn't work:(,  I see the source code in twothreads.c ,the entry code
> >> is "cyg_user_start", and I modified it to be "cyg_start", then the
> >> program can go on,but it seems that the threads don't work at all...
> >>   question 1) I wonder what's the difference between "cyg_user_start"
> >> and "cyg_start", or between "cyg_start" and "main",or between
> >> "cyg_user_start" and "main"???
> >>   question 2) In other test case such as clocktruth.cxx, i see after
> >> the thread is resumed, then use Cyg_scheduler::start() to make the
> >> threads become schedled, but in twothreads.c there is no this rutine,
> >> how are these thread scheduled??
> >>
> >> thanks in advance for any answer and insight
> >> jet
> >>
> >> _________________________________________________________________
> >> Ãâ·ÑÏÂÔØ MSN Explorer:   http://explorer.msn.com/lccn
> >>
> >>
> >> --
> >> Before posting, please read the FAQ: 
http://ecos.sourceware.org/fom/ecos
> >> and search the list archive: 
http://ecos.sourceware.org/ml/ecos-discuss
> >>
> >
> > _________________________________________________________________
> > ÓëÁª»úµÄÅóÓѽøÐн»Á÷£¬ÇëʹÓà MSN Messenger:  
http://messenger.msn.com/cn
> >
>
>--
>J¨¹rgen Lambrecht
>Diksmuidse Heerweg 338
>8200 Sint-Andries
>Tel: +32 (0)50 842901
>GSM: +32 (0)476 313389

_________________________________________________________________
Ãâ·ÑÏÂÔØ MSN Explorer:   http://explorer.msn.com/lccn/  


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss



More information about the Ecos-discuss mailing list