Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Java Expert


Home >> Java

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(), ...

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

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

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

• - http://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
- http://docs.oracle.com/javase/tutorial/essential/concurrency/procthread.html
- http://docs.oracle.com/javase/7/docs/api/java/lang/Thread.html
- http://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

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)

Java, Programming

  • Category:- Java
  • Reference No.:- M92078882
  • Price:- $60

Priced at Now at $60, Verified Solution

Have any Question?


Related Questions in Java

Fundamentals of operating systems and java

Fundamentals of Operating Systems and Java Programming Purpose of the assessment (with ULO Mapping) This assignment assesses the following Unit Learning Outcomes; students should be able to demonstrate their achievements ...

Assignment - method in our madnessthe emphasis for this

Assignment - "Method in our Madness" The emphasis for this assignment is methods with parameters. In preparation for this assignment, create a folder called Assign_3 for the DrJava projects for the assignment. A Cityscap ...

Assessment database and multithread programmingtasktask 1

Assessment: Database and Multithread Programming Task Task 1: Grade Processing University grading system maintains a database called "GradeProcessing" that contains number of tables to store, retrieve and manipulate stud ...

Project requirementsfor the problem described in the next

Project requirements For the problem described in the next section, you must do the following: 1. include your student ID at the end of all filenames for all java code files. Three classes have been identified in section ...

Applied software engineering assignment 1 -learning

Applied Software Engineering Assignment 1 - Learning outcomes - 1. Understand the notion of software engineering and why it is important. 2. Analyse the risk factors associated with phases of the software development lif ...

In ruby the hash class inherits from enumerable suggesting

In Ruby, the Hash class inherits from Enumerable, suggesting to a programmer that Hashes are collections. In Java, however, the Map classes are not part of the JCF (Java Collections Framework). For each language, provide ...

Retail price calculatorwrite a java program that asks the

Retail Price Calculator Write a JAVA program that asks the user to enter an item's wholesale cost and its markup percentage. It should then display the item's retail price. For example: (If an item's wholesale cost is 5. ...

Assignment - java program using array of objectsobjectives

Assignment - JAVA Program using array of objects Objectives - This assessment item relates to the course learning outcomes as stated in the Unit Profile. Details - For this assignment, you are required to develop a Menu ...

Assignment taskwrite a java console application that allows

Assignment task Write a java console application that allows the user to read, validate, store, display, sort and search data such as flight departure city (String), flight number (integer), flight distance (integer), fl ...

Overviewyou are required to use java se 80 and javafx to

Overview You are required to use Java SE 8.0 and JavaFX to develop a Graphical User Interface (GUI) for the FlexiRent rental property management program created in Assignment 1. This assignment is designed to help you: 1 ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As