Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Use both bash script and PowerShell script. Construct a process tree similar to the one above. To obtain process information for a Linux system, use

image

Use both bash script and PowerShell script. 


Construct a process tree similar to the one above. To obtain process information for a Linux system, use the command ps -ael. Use the command man ps to get more information about the ps command. On Windows, make use of the PowerShell Get-Process command.


Similarly, construct a tree that includes both processes and threads (you may trim your tree to fewer process nodes if multiple threads exist for each process).


As a group, perform this exercise, compare results, and answer the following questions:


What running applications are making the most use of multi-threading? Take a look at the Google Chrome web browser. What happened when you create new tabs?


Compare and contrast your Linux trees and your Windows trees. Does the fact that Linux considers both processes and threads as "tasks" make analyzing system behavior any more or less difficult? Why or why not?


Is it possible to perform multi-threading in Bash or PowerShell? Develop a shell script which writes to and reads from a number of files in a directory. Your script should continuously provide feedback on the status of processes/threads. Your script should also provide output on what file was written to as well as what the message was. Finally, describe the tree output.


Make a process tree and answer the three questions at the bottom using Powershell.

s ctor nd For this assignment, you will work with questionnaire you took in Module 3. ps pid - 9298 logind pid - 8415 bash pid - 8416 vim pid= 9204 group systemd pid=1 python pid - 2808 sshd pid - 3028 sshd pid - 3610 tcsh pid - 4005

Step by Step Solution

3.45 Rating (145 Votes )

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

Step: 3

blur-text-image

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

Introductory Statistics

Authors: Neil A. Weiss

9th Edition

978-0321697943, 321697944, 321691229, 978-0321691224

More Books

Students also viewed these Programming questions