processor management

Prince George’s Community College

INT-1700: Understanding Operating Systems (Zero-cost course material)

Unit 4 Lab Assignment 4: Processor Management (30 points)

In this assignment, you will learn to collect information about and send commands to your OS’s processor manager. For each of the two questions, do the following:

1. Create a document (use Microsoft word or any equivalent tool such as LibreOffice) and name it appropriately to reflect the assignment type, number, and your name.

2. Answer the following questions (if any) in the document you created and justify your answers. To do this, you may need to perform some tasks on your computer, use a snipping or “print screen” tool to take screenshots, and paste the illustrations/pictures into the document. Showing screenshots only does not constitute answering a question. You need to provide both the answer to the question and the screenshots.

3. Save and upload the document to the learning management system (Blackboard). Upload the two documents at once.

Do not forget to show visual evidence (screenshots) of the main actions you took to answer the questions.

Question 1: Windows Virtual Memory (15 points)

The /proc file system is a mechanism provided by Linux for the kernel to report information about the system and processes to users. The /proc file system is nicely documented in the proc man page. You can access this document by running the command man proc on a Linux system. Understand the system-wide proc files such as meminfo and cpuinfo, and per-process files such as status, stat, limits, maps and so on. Now answer the following questions using the /proc filesystem.

1. Run command more /proc/cpuinfo and explain the following terms: processor and cores. [Hint: Use lscpu to verify your definitions.]

2. How many cores does your machine have?

3. How many processors does your machine have?

4. What is the frequency of each processor?

5. How much physical memory does your system have?

6. How much of this memory is free?

7. How many context switches has the system performed since bootup? [Hint: use vmstat]

Do not forget to show visual evidence of the main actions you took to answer the questions.

Question 2: Linux Virtual Memory (15 points)

You may perform the tasks in this question on any Linux system. You may find help in [1].

1. Install and run the utility htop on your Linux OS using the CLI. Answer the following questions:

a. How much swap memory do you have? how much of it is being used by your OS?

b. For how long has your system been up?

c. How do you kill a process in htop? Kill a random process and see if it will have an effect on your OS.

2. Start the text editing program of your choice (e.g., gedit)

a. What is the PID of the editing process? [hint: Use the psutility (module 4-1) and “| grep”]

b. Kill the text editing process. What command did you use?

c. Issue the “pstree” command. What is the first process that your OS started? What happens if you kill that process?

Do not forget to show visual evidence of the main actions you took to answer the questions.

Reference: [1]https://linuxtogether.org/htop-command-explanation…

 
Do you need a similar assignment done for you from scratch? We have qualified writers to help you. We assure you an A+ quality paper that is free from plagiarism. Order now for an Amazing Discount!
Use Discount Code "Newclient" for a 15% Discount!

NB: We do not resell papers. Upon ordering, we do an original paper exclusively for you.