mostly done; helgrind issue not fixed
This commit is contained in:
parent
b1b32525a5
commit
6d65af5288
9 changed files with 381 additions and 231 deletions
28
coders/schedulers.c
Normal file
28
coders/schedulers.c
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* scheduler.c :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: semebrah <semebrah@student.42berlin.de> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2026/03/22 18:07:14 by semebrah #+# #+# */
|
||||
/* Updated: 2026/03/22 18:07:31 by semebrah ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "codexion.h"
|
||||
|
||||
int fifo(void *t1, void *t2)
|
||||
{
|
||||
t_entry *entry1;
|
||||
t_entry *entry2;
|
||||
|
||||
entry1 = t1;
|
||||
entry2 = t2;
|
||||
return (entry1->queued_at - entry2->queued_at);
|
||||
}
|
||||
|
||||
int edf(void *t1, void *t2)
|
||||
{
|
||||
return (((t_entry *)t1)->deadline - ((t_entry *)t2)->deadline);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue