Завершен

Operating System

You will submitt printout of your code along with sample output.

•There will be discussion on your work. All group members must be there.

Introduction:

It is required in this assignment, to write a program in Java that simulates the behavior of the multiprogramming operating system. At the end of the simulation, you are expected to output some statistics regarding the behavior of the system. In the following sections, we will introduce the hardware specification, the multiprogramming OS features and the jobs requirements.

Hardware:

The computer hardware is assumed to have:

1. A hard disk of size of 10 GB where 1/5 of this size is used to store the user programs.

2. A RAM of size 192MB, where 32MB is used to store the OS.

3. A CPU that executes one instruction each unit of time.

4. An IO device for input and output operations.

5. An internal clock that ticks every unit of time.

Operating System:

The operating system is the multiprogramming OS. We would be interested in only 2 features in this simulation: The Job and CPU scheduling.

1. Job Scheduling: The program with the smallest size is first selected to be loaded in the main memory. We call this technique by SSPF.

2. CPU scheduling: The CPU is allocated to the program with the smallest expected running time. We call this technique by SETF.

Program specifications:

Each program has 2 main requirements: A program size in KB and an expected execution time. Of course, the expected execution time is greater or equal to the exact execution time. In addition, each program should have an Id and state. The student should specify any extra information that is required by the simulation.

1. The memory sizes are uniformly distributed between 16KB and 16384KB

2. The expected execution time is also distributed between 16 ut and 512 ut.

Initialization phase:

You should perform the following steps before running the simulation:

1. Generate enough programs with random memory size and random expected execution time so to fill the hard disk. (Σ Program sizes ≤ 2 GB)

2. Load the RAM with the maximum number of user programs.

3. Start the simulation run which consists of a simulation of the Machine Execution Cycle.

The Machine Execution Cycle:

The following algorithm simulates the machine Execution Cycle:

MEC algorithm:

While true do {

Increments the simulated clock by one unit of time

(* This assumes that one instruction is executed *)

If there are interrupts

Then Interrupts the current program and calls the ISRi

endif

}

Interrupts are also randomly generated:

1. The possibility that there are interrupts is 10%

2. The possibility that there is an IO request is 20%

3. The possibility that the busy IO device will terminate is 20%

4. The possibility that the program terminates normally is 5%

5. The possibility that the program terminates abnormally is 1%

The main simulator program is like this:

Initialize the simulation

While there are jobs in the H-Disk do {

Run the Machine Execution Cycle

}

Print the required statistics

Output from the simulation:

At the end of the simulation, you should print the following results:

[login to view URL] number of initially generated jobs stored on the H-disk.

[login to view URL] average program size of all jobs.

[login to view URL] average number of jobs that have completed their execution normally.

[login to view URL] average number of jobs that have completed their execution abnormally.

[login to view URL] number of CPU bound jobs.

Навыки: Программирование на C++, Java

Показать больше: ut jobs, statistics algorithm, state of n.h. jobs, state of n.c. jobs, scheduling jobs, operations jobs, on assignment jobs, ok state jobs, n.h. state jobs, job assignment algorithm, java 1.5 features, introduction of algorithm, c# programs with output, algorithm statistics, algorithm sample code, algorithm jobs, algorithm introduction, algorithm computer program, multiprogramming, machine jobs

О работодателе:
( 6 отзыв(-а, -ов) ) alriyadh, Saudi Arabia

ID проекта: #7600036

Поручен:

dinhks

Hi I am Dinh. I done some similar project. you can see it in here https://www.freelancer.com/jobs/CPlusPlus-Programming/Process-Scheduling/ https://www.freelancer.com/jobs/Java/executable-design/ [login to view URL] Больше

$150 USD за 3 дней(-я)
(48 отзывов(-а))
5.2

8 фрилансеров(-а) готовы выполнить эту работу в среднем за $195

super2lao

A proposal has not yet been provided

$252 USD за 3 дней(-я)
(160 отзывов(-а))
7.7
dobreiiita

Hello I am Java expert and interested in this project. Please communicate so we can discuss further. Regards Anshu

$150 USD за 3 дней(-я)
(505 отзывов(-а))
7.5
phongpro

I have 5 years of programming experience. I can help you solve this problem. When you work with me you will feel very comfortable.

$155 USD за 3 дней(-я)
(52 отзывов(-а))
4.9
pivn

let expert do this............................................................................................................

$266 USD за 5 дней(-я)
(16 отзывов(-а))
4.7
Chyphercomp

Hi, i am software engineer. I have developed the same project before. if you want to have a proof just go through my portfolio i did this project . i can deliver this project to you in a [login to view URL] is the proof of that p Больше

$155 USD за 1 день
(8 отзывов(-а))
4.0
MUSDebuggers

A proposal has not yet been provided

$277 USD за 10 дней(-я)
(0 отзывов(-а))
0.0
jnaneshbt

I have experience in developing linux device driver using C programming language, and also has product development experience in C++ and Java.

$155 USD за 3 дней(-я)
(0 отзывов(-а))
0.0