Skip to content

Instantly share code, notes, and snippets.

@hlippek
hlippek / basic_scheduler.c
Created July 27, 2012 11:58
Implementation of a basic task scheduler
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#define MAX_PROCESSES 32 /* the maximal number of processes in the system */
#define MAX_NAME_LEN 32
/* Process control block -
* holding all process relevant informations
*/