lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:	Wed, 11 Jun 2008 17:28:06 +0200
From:	Bodo Eggert <7eggert@....de>
To:	Peter Zijlstra <a.p.zijlstra@...llo.nl>,
	Jakub Jozwicki <jozwicki@...er.pl>,
	linux-kernel@...r.kernel.org, Robert Hancock <hancockr@...w.ca>
Subject: Re: sched_yield() on 2.6.25

Peter Zijlstra <a.p.zijlstra@...llo.nl> wrote:
> On Mon, 2008-06-09 at 08:37 +0200, Jakub Jozwicki wrote:

>> From the man sched_yield:
>> 
>> 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.
>> 
>> and also IEEE/Open Group:
>> http://www.opengroup.org/onlinepubs/000095399/functions/sched_yield.html
> 
> Yeah, except that is for Real-Time scheduling classes, SCHED_OTHER
> doesn't have static priority queues.
> 
> SCHED_OTHER doesn't have a specified implementation - so relying on it
> to do anything specific is well outside the scope of definition.

OTOH, it's sane not to schedule exactly the thread which just tried
to say "I can't do any sane work, please run another thread.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ