Scheduler illustré¶
#include <stdio.h>
int main(int ac, char *av[])
{
char s[16];
while (1) {
scanf("%15s", s);
printf("hello, %s\n", s);
}
}
int main(int ac, char *argv[])
{
int i = 0;
while(1) {
i += 1;
}
}
int main(int ac, char *argv[])
{
#define SIZE (16*100000000)
long i;
char *mem = malloc(SIZE);
for (i = 0; i < SIZE-1; i++) mem[i] = 'a';
fork();
while(1) {
i += 1;
}
}