
Each process is assigned a timeslice when it is scheduled.
#Schedule creator gatech code#
student.h - Header file for your code to interface with the OS simulatorįor your simulator, you will implement the following three CPU scheduling algorithms:.student.c - This file contains stub functions for your CPU scheduler.process.h - Header file for the process data.process.c - Descriptions of the simulated processes.os-sim.h - Header file for the simulator.
#Schedule creator gatech simulator#
os-sim.c - Code for the operating system simulator which calls your CPU scheduler.Makefile - Working one provided for you add as you wish but don't break it.However, just because you are only modifying two files doesn't mean that you should ignore the other ones - there is helpful information in the other files. You will only need to modify answers.txt and student.c.

We have provided you with source files that provide the framework for your simulator. The framework for the multithreaded OS simulator is nearly complete, but missing one critical component: the CPU scheduler! Your task is to implement the CPU scheduler, using three different scheduling algorithms. In this project, you will implement a multiprocessor operating system simulator using pthreads. In particular, look at: pthread_mutex_init, pthread_mutex_lock, pthread_cond_init, pthread_cond_signal and pthread_cond_wait. There are man pages for all the relevant pthread library calls.If you need help for using pthreads, refer to these resources:.Please follow the CS2200 Guidelines for Assignments when preparing your answers to turn in via Sakai.You will do so using threads to learn about multithreading and synchronization.īefore you begin, take note of the following:.You will build a simulator of a simple operating system to learn more about operating systems in general and process schedulers in specific.Project 4 Implementing Processor Scheduler using pthreads

CS 2200 Project 4 CS2200 Introduction to Systems and Networks
