- Fix all policies to ensure that the sort *IS* stable
- Erase the newly selected running thread from the ready queue as per Marco feedback (or so I believe to have understood...) git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1024 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
parent
df4b1b4205
commit
dbfc7393ed
5 changed files with 9 additions and 7 deletions
|
@ -45,6 +45,6 @@ priority in account. Use rr_priority for that."""
|
|||
|
||||
def sort_queue(self, queue):
|
||||
by_ltime = lambda a, b: \
|
||||
a.get_last_acquisition() > \
|
||||
a.get_last_acquisition() <= \
|
||||
b.get_last_acquisition()
|
||||
self.sort(queue,by_ltime)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue