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]

Re: question about scheduling.




> 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






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