Write a program which assumes a number of virtual pages

Assignment Help JAVA Programming
Reference no: EM131324283

Program 1

Objective:

This program assignment is provided to let the students know how to handle threads and enhance system availability on a multiprocessor or multicore environment. A single process is supposed to create multiple threads with runner functions which include individual threads roles. Threads can be created by using Pthreads API, Win32 API, or Java API. on Unix/Linux or Windows platform environment.

Environment: Unix/Linux environment (VM Linux or Triton Server), Windows platform

Language: C, Java

Requirements:

i. You have wide range of choices for this assignment. First, design your program to explain the basic concept of the process management in Unix Kernel. This main idea will be evolved to show your understanding on inter-process communication, file processing, etc.

ii. Refer to the following thread API:

- pthread_create(), pthread_join(), ...

• - https://www.yolinux.com/TUTORIALS/LinuxTutorialPosixThreads.html

• - CreateThread(), CloseHandle(), ResumeThread(), ...

• - https://www.relisoft.com/win32/active.html

• - https://www.codeproject.com/Articles/5542/Simple-Multithreaded-Application-in-pure-C-Win32-a

• - https://msdn.microsoft.com/en-us/library/windows/desktop/ms684847(v=vs.85).aspx

• - https://msdn.microsoft.com/en-us/library/windows/desktop/ms682516(v=vs.85).aspx

- Thread handling with Java API
- https://docs.oracle.com/javase/tutorial/essential/concurrency/procthread.html
- https://docs.oracle.com/javase/7/docs/api/java/lang/Thread.html
- https://www.wideskills.com/java-tutorial/java-threads-tutorial

iii. The program should create at least two different threads and assign corresponding runner functions with the threads.

iv. The output should contain the screen capture of the execution procedure of the program.

v. Runner function may contain any logic you've designed, for example login procedure by opening session, collection of bank account information, catalog information display, audio/image data handling, etc.

vi. Result should be organized as a document which explains the overview of your program, code, execution results, and the conclusion including justification of your program, lessons you've learned, comments, etc.

Note:

i. Before you include Pthread API in your c source code,

- #include<pthread.h>

ii. To compile the code written in Pthread API,

- gcc -lpthread -o threadtestthreadtest.c

Program 2

Please write a simulation program which assumes a number of virtual pages of a process(es) and frames of physical memory.

Your program replaces pages according page faults caused by invalid access to pages.

You have to generate random number of page accesses from the simulator.

You need to show the snapshot of page tables/tlbs and physical memory allocated to each process.

Graphical User Interface may be considered as for maximum credits.

Program source file, execution snapshot with program execution sequence and optional document should be submitted with a single zip file.

[Original Direction for Program Assignment ]

Virtual Memory Handling (Demand Paging and Page Replacement)

Reference no: EM131324283

Questions Cloud

Firm achieve in order to meet its growth rate goal : Fulkerson Manufacturing wishes to maintain a sustainable growth rate of 9.25 percent a year, a debt–equity ratio of .50, and a dividend payout ratio of 27.5 percent. The ratio of total assets to sales is constant at 1.25. What profit margin must the ..
Describe overall impact of utilizing information technology : Describe the overall impact of utilizing information technologies in combatting digital crime and digital terrorism. Explain the existing challenges that result from the independent nature of the law enforcement agencies within the U.S. with regar..
Financial records-what is return on assets : A fire has destroyed a large percentage of the financial records of the Excandesco Company. You have the task of piecing together information in order to release a financial report. You have found the return on equity to be 15.1 percent. What is the ..
How various areas of your figure correspond to the equation : Indicate how the various areas of your figure correspond to the equation derived in Appendix 9A.
Write a program which assumes a number of virtual pages : Please write a simulation program which assumes a number of virtual pages of a process(es) and frames of physical memory. Your program replaces pages according page faults caused by invalid access to pages.
High density of peroxisomes : A multicellular lifeform has a weird type of cell in its body. This cell has a high density of peroxisomes. What is the most reasonable function of this cell?
Find the torque n that must be applied to the disc : Two circular discs, both with radius a, are parallel with mutual distance d, such that their centers are situated on a line orthogonal to the discs. Find the torque N that must be applied to the disc to keep the angular velocity constant
The alternative of buying a call at a higher exercise price : What reasons could be given for the alternative of buying a call at a higher exercise price? At a lower exercise price?
Explain why observation is essential tool of child guidance : Think about what you have learned about the authoritative style of caregiving. Then write a short scenario or script that demonstrates this style by depicting an early childhood professional interacting with a preschooler or a group of preschooler..

Reviews

Write a Review

JAVA Programming Questions & Answers

  Create a pair of programs a client and a server to

create a pair of programs a client and a server to distribute the functions of the library you developed. the client

  Write a method for the purse class

Write a method for the Purse class public boolean sameContents(Purse other) that checks whether the other purse has the same coins in the same order.

  Program 2 classes one called student one called grades

program 2 classes one called student one called grades functional requirements ask for how many students u need to

  Create a program that asks a player to guess a number

Create a program that asks a player to guess a number, the application generates a random number, display a message indicating whether the player's guess was correct, too high, or too low.

  Implementation of replica manager classes

The purpose of this assignment is to exemplify and explore some important issues of replication. find out which RM is running. The results of this listTramService() call should also be printed out on the Console of the FE,

  Create a class named integerset.

"The fourth array set is named fourthArrayName and was created by calling Method intersectionOfSets on the first two sets. It represents this set of numbers: { value1, value2, value3, valuen }." (Again note: that each number of the array is follow..

  Create exception classes

First, create three exception classes named NumberHighException, NumberLowException, and NumberNegativeException. Both NumberHighException and NumberLowException should be directly subclassed from the Exception class, but NumberNegativeException s..

  Write a java program to simulate a die

Write a Java program to simulate a die. A die has values of either 1, 2, 3, 4, 5 or 6 on the face. You should use the Math.Random() or the java.util.Random() class to generate the values on the die.

  Define get and set functions and two constructors

Create a class called Building. It will have one data member of type string (used for a postal address). Define get and set functions and two constructors.

  Create an abstract class named element

Part 1: Create an abstract class named Element that holds properties of elements, including their symbol, atomic number, and atomic weight. Include a constructor that requires values for all three properties and a get method for each value.

  Write a program that reads from keyboard a sequence

Write a program that reads from keyboard a sequence of positive integers that is ended with a negative integer. The positive integers are inserted into a sort list of integers when they are read.

  Interface named comparison

Create an interface named Comparison whose method can be used to compare two Time object. The Method will include isGreater,isLess,and is Equal.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd