Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Do it in CentOS Linux system a. Type top. Notice that the display stays in the window but changes every few seconds. What is the

Do it in CentOS Linux system
image text in transcribed
a. Type top. Notice that the display stays in the window but changes every few seconds. What is the %CPU usage oftop? Leave top running, and in a second terminal window launch the command find /-empty (ignore any messages that you receive while it is running) While find executes, look for find in top's display. It moves around. Why is it moving? As it moves, what happens to its %CPU and %MEM values? After perhaps 30 seconds or a minute, find will end. Examine top. What happens to the find entry? b. Another process listed in top is init with a PID of. Why does init have a PID of 1? c. Start the GUI System Monitor program by selecting ApplicationsSystem Tools ->System Monitor. Click on the Processes tab. Compare this to what you see in top. Compare the fields available in the System Monitor to those available in top. What fields differ (if any) Close this preferences window. Click on the Resources the GUI to what top tellsou You can close the system monitor now (leave top running) d. You interact with top by entering letters which are commands. Type u to change users and when prompted, enter Student. What are the top processes listed for Student?[Attach a screenshot What is the smallest PID and the largest PID that you see in the top window? Type u and to reset top to showing all users. Type d to change the refresh duration from the default (3 seconds) and type 0.5 enter>. Notice how quickly top changes. You should see the top process change quickly. Type d 3 to reset t. Type q to exit top. 3. Priorities a. In one terminal window, type top. In the other window, su to root and then type nice -n -20 find /-empty. Watch find's progress in top. What are its priority and NI (nice) values? Exit as root. b. Make a note of top's PID. In the other window, type renice -n 10 -P PID where PID is top's PID, What response did you get? a. Open an xterm in the background (xterm ). Type ps u to obtain the PID of xterm. Enter the command kill -s 9 PID where PID is the PID of xterm What happens? look at your other terminal window, does your prompt appear? Ifso, where is it?) Restart xterm, obtain its PID and kill it using -s 1. What happens? Increase the signal until the xterm ends. What signal is needed to kill it? Why did-9 kill it but not 1? b. The killall command can be used to kil multiple processes. Launch two xterm & processes. Enter the command killall xterm What happens? Open two more xterm & processes. Type killall -i xterm What is the difference

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Big Data Systems A 360-degree Approach

Authors: Jawwad ShamsiMuhammad Khojaye

1st Edition

0429531575, 9780429531576

More Books

Students also viewed these Databases questions

Question

What is Constitution, Political System and Public Policy? In India

Answered: 1 week ago

Question

What is Environment and Ecology? Explain with examples

Answered: 1 week ago