Use both bash script and PowerShell script. Construct a process tree similar to the one above. To
Question:
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.