xv6-cs450/zombie.c

17 lines
180 B
C
Raw Normal View History

2007-08-08 10:38:55 +02:00
// Create a zombie process.
#include "types.h"
#include "stat.h"
#include "user.h"
int
main(void)
{
int i;
if(fork() > 0)
for(i=0; i<10; i++)
yield();
2007-08-08 10:44:11 +02:00
exit();
2007-08-08 10:38:55 +02:00
}