Get Instant Help From 5000+ Experts For
question

Writing: Get your essay and assignment written from scratch by PhD expert

Rewriting: Paraphrase or rewrite your friend's essay with similar meaning at reduced cost

Editing:Proofread your work by experts and improve grade at Lowest cost

And Improve Your Grades
myassignmenthelp.com
loader
Phone no. Missing!

Enter phone no. to receive critical updates and urgent messages !

Attach file

Error goes here

Files Missing!

Please upload all relevant files for quick & complete assistance.

Guaranteed Higher Grade!
Free Quote
wave
Tasks in Linux OS: Multiprogramming, Microkernels, Command Line Manipulation, Bootloader, Virtual Me

Task 1

Tasks The tasks are listed below. For complete details of the tasks, see the related week in Blackboard. You should have been completing these tasks as they were set, so minimal work should require at this stage. Note that marks are also awarded for presentation and the execution part of the taskgiven below. Task 1 a)Compare multiprogramming and multitasking. You should define what these multiprocessing approaches are and identify their similarities and differences. You might consider including diagrams to support your findings. b)Discuss about microkernels and how it compares with monolithic kernels. Use suitable diagrams to illustrate the differences between them. c)Completethe following in TWO languages of your choice. The program must be able to compile and run on Linux OSi.The program will ask for your student number.  ii.The program will then print only the digits in the even places of your student number. iii.The program will also display the lucky number which is a remainder of the odd numbers divided by 9. What is your student number? ... Your lucky number is 2 Task 2 This task requires you to work on the terminal with various common Linux commands. Use Linux command scriptto record your activities and save it for review. Show [Linux command] and [Evidence from Linux]. a)Display your current working directory. Ensure it is your homedirectory. List ALLthe files in your home directory including hidden files in a long format. b)Go to the working directory. Download the script to your home directoryusing wget and make it executable. (man wget to see how it works) c)Create a 207se directory in your home directory. i.Create a subdirectory of 207se called portfolio ii.Create numbered directories for this week and last week. i.e. 1 and 2. iii.Transfer your week 1 evidence into the folder called 1. iv.Show your evidence using tree.shd)In the 207se directory, create a file named clash.txt. Input the following text in this manner in your clash.txt file using editor or echo and indirection. Witch Baby Dragon Skeleton Graveyard Barbarians Archer Giant Goblins Minions Fireball Tesla Miner Wizard Prince e)Sort the file in descendingorder and output only the last 10 names into another file called clash2.txt f)Demonstrate some Linux command-line manipulation of processes: Suspend, background (make run in the background), foreground, and kill processes. Use typescript to show evidence. There are a few ways to do each of these. Demonstrate more ways to get the full marks. g)Write a shell script program with a menuin Linux that does the following: 1.List the current directory 2.Call a function and fork a child to greet “Greetings”. Display both parent ID and child ID 3.Generate a child process (with PID displayed) that calls a sleep function to print Hello to the screen every 5 seconds 4.Terminate/Kill the process in part e) 5.Quit Example: The program will display the contents of the current directory when the user keys in 1. The program must allow the user to quit when he keys in 5. Task 3 a, explain the need(s) for a 2-stage bootloader b)Write using Assembly Language to display a rectangle of dots with the expected output as shown. The marks awarded will depend on how the program is coded (whether it is hard coded, loops used etc.) c)Implement in code to calculate the average wait timeand the average turnaround timefor a Shortest Job First algorithm for 3 to 6 processes. Assume all processes arrive at T=0. d)Each of you will be given a different scenario to do this part. Draw the Gantt chartof the processes using the Round Robin Algorithm (RR) Calculate the average wait timeand average turnaround timewith RR with quantum of 3. Task 4 In this task, there are THREEparts: Memory allocation program, Virtual Memory Paging approaches and writing the program (TCP Server). a)Write a program to read in 5 memory slots and up to 5 processes. Display the result of the memory allocation using the First Fit approach. b)Virtual Memory Paging: Each of you will be given a different scenarioto accomplish the task. You are to complete the tables for: 1)First In First Out 2)Least Recently Used 3)Least Frequently Used Each sub task for part b) c)Modify the given TCP server (in C code) to be a “Fun Bulletin Board Server (FBBS)”. The FBBS will connect only on a fixed port. The fixed port will be based on the last 5 digits of your student number. FBBS will be able to reply based on the option entered. You will work on the code provided (C programming language )1)Upon successful connection to FBBS, the client will be greeted with the menu as shown “This is the Fun Bulletin Board Server.” “1. Quote of the Day” “2. News “Enter a number: 2)The following table shows the corresponding for a car Type. Option entered One of the random responses to be displayed. 1 Part of the secret of success in life is to eat what you like and let the food fight it out inside. -Mark Twain In the right light, at the right time, everything is extraordinary. -Aaron Rose I generally avoid temptation unless I can't resist it. -Mae West 2 World's fastest finger-snapping guy plays along amazingly to song beats Next Prime Minister will not cause 'huge discontinuity': Chan Chun Sing Manwho stole $27,800 from father and employer jailed

support
close