public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] question about scheduling.
@ 2001-07-20 21:39 Tony Ko
  2001-07-23  1:46 ` Rafael Rodríguez Velilla
  2001-07-23  1:47 ` Rafael Rodríguez Velilla
  0 siblings, 2 replies; 3+ messages in thread
From: Tony Ko @ 2001-07-20 21:39 UTC (permalink / raw)
  To: ecos-discuss

hi.
suppose that one thread is finished.
then scheduling happens.

by the way,
who call scheduler after finising a thread?
and does it have something with real_time_clock?

thanks in advance.

Tony.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [ECOS] question about scheduling.
  2001-07-20 21:39 [ECOS] question about scheduling Tony Ko
@ 2001-07-23  1:46 ` Rafael Rodríguez Velilla
  2001-07-23  1:47 ` Rafael Rodríguez Velilla
  1 sibling, 0 replies; 3+ messages in thread
From: Rafael Rodríguez Velilla @ 2001-07-23  1:46 UTC (permalink / raw)
  To: ecos

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 567 bytes --]

> 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





^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [ECOS] question about scheduling.
  2001-07-20 21:39 [ECOS] question about scheduling Tony Ko
  2001-07-23  1:46 ` Rafael Rodríguez Velilla
@ 2001-07-23  1:47 ` Rafael Rodríguez Velilla
  1 sibling, 0 replies; 3+ messages in thread
From: Rafael Rodríguez Velilla @ 2001-07-23  1:47 UTC (permalink / raw)
  To: ecos

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 563 bytes --]

> 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2001-07-23  1:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-07-20 21:39 [ECOS] question about scheduling Tony Ko
2001-07-23  1:46 ` Rafael Rodríguez Velilla
2001-07-23  1:47 ` Rafael Rodríguez Velilla

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).