EssayGhost Assignment代写,Essay代写,网课代修,Quiz代考

EssayGhost-Essay代写,作业代写,网课代修代上,cs代写代考

一站式网课代修,论文代写

高质量的Assignment代写、Paper代写、Report代写服务

EG1hao
网课代修代上,cs代写代考
物理代写案例
您的位置: 主页 > 理科代写案例 > 物理代写案例 >
物理代写:物理考试代考,物理assignment代写 - 物理作业代写/物理代考
发布时间:2021-07-25 17:40:43浏览次数:
COMP604: Operating Systemsprogramming代写 Things you should know:This assignment contributes 30% towards overall of your course marks. In this assignmentSemester 2, 2019Assignment programming代写Due Date: 04-Oct-2019 (till 5:00pm)Things you should know:This assignment contributes 30% towards overall of your course marks. In this assignment you will be asked to implement some of the concepts and skills you have learned in this course. You may be required to do some research as well but, please be aware of AUT’s plagiarism and cheating policies.Late submission penalty is applied with a 5% deduction per day. If you submit the assignment more than 5 days late, then you will be awarded 0 marks.programming代写This is a team or individual assignment: The assignment is intended to be a team assignment for teams of two. However, if you feel it inconvenient to do this as a team, you are free to choose to submit an individually worked assignment. For those who feel a bit “challenged” with programming due to their major s nature, this is a chance to team up with somebody more comfortable with programming.This assignment consists of three tasks and all tasks are mandatory.Task1: Shell scripting programming代写Objective: The objective of this task is to develop basic shell scripting skills with parameter handling.You are required to write a shell program/script to concatenate data from two files. Your program should perform the following:a.Your script should start executing by greeting the user and displaying the information about its usageg.,“Welcome user username .programming代写This is ./concatenatefile.sh script file. You are required to enter names of two text files and the program will concatenate those files and generate an output.txt file”.b.Check the no. of parameters passed by the user. If the user inputs incorrect no. of parameters or the files name entered does not exist; your program should display the error message andc.Program should correctly concatenate data of the two files and save it into a new file named output.txt and generates a successAssumption: Consider the input files are in the same directory as that of your concatenatefile.sh.programming代写Task2: Banker’s Algorithm [1] programming代写Objective: The objective of this task is to develop a better understanding of multithreading.Overview:Banker’s Algorithm is used by many Operating Systems to avoid deadlock and handle resource allocation properly. This algorithm works based on the following three factors:What is the maximum no. of requests each process can make for each resource?How much each resource is currently allocated to eachprocess?Howmuch each resource is currently available (free for use) with the operating system?programming代写RuleResource will be allocated to the requested process if and only if the no. of resources requested are currently available (free for use) with the operating system.System Implementation:As, all the customers will be sharing the available resources yet having the record of their individual allocated resources, we can use Threads to implement this problem. We are going to implement Banker’s Algorithm using JAVA Thread Class (you can use JAVA Runnable or PThreads in C/C++ if you desire).programming代写We will be maintaining the record of total available resources of each type with the system, the number of each type of resources occupied by each customer. Method requestResource will be used to assign the requested resources to the relevant customer IF the Rule (explained in the above section) permits. With each served request a thread will be created and start functioning. For the assignment purpose, leteach thread sleep for some random time before exiting. On exiting, thread will release the resource it was occupying.programming代写Another method releaseResource will be used to release a resource. Once the resource is released, it will be returned to the pool of available resources. The method should also print the current status of the overall system resources.The following program structure and steps may be helpful in completing this task.

所有物理代写范围:essayghost为美国、加拿大、英国、澳洲的留学生提供物理代写、物理作业代写、物理代考等留学生物理作业代写、exam代考服务。