This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: question about scheduling.
- To: ecos <ecos-discuss at sources dot redhat dot com>
- Subject: Re: [ECOS] question about scheduling.
- From: Rafael Rodríguez Velilla <rrv at tid dot es>
- Date: Mon, 23 Jul 2001 10:21:11 +0200
- Organization: Telefónica I+D
- References: <9860C773D04D834D83FD6FAD00A61E9311B710@gctsemi.gctsemi.com>
> suppose that one thread is finished.
> then scheduling happens.
>
> by the way,
> who call scheduler after finising a thread?
It depends on how the thread finishes... if it finishes with a call to
exit, then the exit function invoques Cyg_Scheduler::unlock as many
times as needed to produce a re-schedule. (look
kernel/<version>/src/common/thread.cxx for the exit method)
The unlock function is the one that produces the schedules.
--
Rafael Rodríguez Velilla rrv@tid.es
Telefónica I+D http://www.tid.es
Telf: +34 - 91 337 4270