public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* sched_yield
@ 2001-02-25 18:32 Fabrice Peix
  2001-02-25 18:52 ` sched_yield Davide Libenzi
  0 siblings, 1 reply; 2+ messages in thread
From: Fabrice Peix @ 2001-02-25 18:32 UTC (permalink / raw)
  To: KML




	Yop,

	Just a newbie question ...
	Why sys_sched_yield don't call schedule ?
	
	
	man page of sched_yield tell : 

	"A  process  can relinquish the processor voluntarily 
	without blocking by calling sched_yield.  
	The process will then be moved to the end 
	of the queue for its static priority and 
	a new process gets to run."
	
	Bye.

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

* RE: sched_yield
  2001-02-25 18:32 sched_yield Fabrice Peix
@ 2001-02-25 18:52 ` Davide Libenzi
  0 siblings, 0 replies; 2+ messages in thread
From: Davide Libenzi @ 2001-02-25 18:52 UTC (permalink / raw)
  To: Fabrice Peix; +Cc: KML


On 25-Feb-2001 Fabrice Peix wrote:
> 
> 
> 
>       Yop,
> 
>       Just a newbie question ...
>       Why sys_sched_yield don't call schedule ?
>       
>       
>       man page of sched_yield tell : 
> 
>       "A  process  can relinquish the processor voluntarily 
>       without blocking by calling sched_yield.  
>       The process will then be moved to the end 
>       of the queue for its static priority and 
>       a new process gets to run."
>       

It sets, under certain conditions ( nr_running ), the variable need_resched
and, in the system call return code this value is checked and schedule() is
called.
Look at sched.c and entry.S.



- Davide


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

end of thread, other threads:[~2001-02-25 18:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-02-25 18:32 sched_yield Fabrice Peix
2001-02-25 18:52 ` sched_yield Davide Libenzi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox