While the top command is running, what key can be pressed to change the nice value of a process? a. n b. p c. r d. v
Added by Michelle B.
Step 1
The `top` command is used to display real-time information about running processes. Show more…
Show all steps
Your feedback will help us improve your experience
Akash M and 71 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
Texts: Priority scheduling in xv6 riscv: Introduction In this lab assignment, you will be implementing a Priority Scheduler for xv6. The default process scheduling policy of xv6 is Round Robin. In Lab 7, you have gone through the process of implementing a First-Come-First-Served (FCFS) scheduler. There is a test program that you can use to obtain timing results. You will need to tabulate these timing results for 1, 2, and 3 CPUs in a text file to be named results.txt as part of your submission. In this file, also comment on the relative average run times, waiting times, and sleep times compared with Round Robin and FCFS from the lab exercises. Detailed Description You should continue with the copy of xv6-riscv that you have used in Tasks 7.1 and 7.2 of Lab 7. To implement priority scheduling, you will need to do the following: (1) Add an integer variable named "nice" in struct proc for the priority level of a process. Use a range of 0 to 20, with 20 being the lowest and 0 the highest priority. Note that a higher value of "nice" corresponds to a lower priority. This is in line with common practice in OS implementations. (2) Determine the default "nice" value of a process when it is created and add the code to do so. Usually, it is somewhere in the middle of the range. (3) Implement a system call "int chpriority(int pid, int newnice)" to change the priority of process pid to "newnice". (4) Add code to implement priority scheduling if PRIORITY (rather than RR or FCFS as done in the lab exercises) is defined. Use the program in schedtest2.c to obtain timings for priority scheduling. Tabulate these times for 1, 2, and 3 CPUs in a text file. Comment on them as compared with the results obtained from Lab 7.
Akash M.
4) when you click the button for a selected graphic, word provides options for changing how a graphic is positioned with text in a document. a) layout options b) image options c) positioning d) graphic placement 5) to move down one paragraph , press the. key(s) . a) ALT+down arrow b) CTRL + down arrow c) down arrow d) F1 6) to move to the beginning of a line with the keyboard , press the key(s) a) left arrow b) CTRL + home c) home d) page up 7) Press the Enter key in all of the following circumstances except . a) to insert a blank line into a document b) when the insertion point reaches the right margin c) to begin a new paragraph d) in response to prompts in word dialog boxes
Matthew W.
Supreeta N.
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
Transcript
Watch the video solution with this free unlock.
EMAIL
PASSWORD