Question: use the Linux operating system and use Bash to learn the theory of multithreading. Research bash programming using this module s readings and presentation. show

use the Linux operating system and use Bash to learn the theory of multithreading.
Research bash programming using this modules readings and presentation.
show me the steps and what to type in order to get the result
Program a bash script that outputs the following:
1)Echo a heading of NAME
echo your name
2)A heading DATE
the current system date in the format: Today is Monday, January 1,2000.
3)A heading PROCESS
List all of the running processes
4)A heading TOP PROCESS
Show a list of the top processes that use the most memory or CPU
5)A heading MULTITHREAD
Two 5 second sleep statements with echo and time commands to effectively demonstrate the concept of multiple processes.
Part 2
Program a bash script to demonstrate the theory of multithreading using processes:
1)Use bash to code an endless loop.
2)Create a text file of 10 ip addresses.
3)Code a bash script to read the ip addresses. Extract the first part of the ip addresses and display them on the console.
4)Run the endless loop in the background. Run the ip address extraction script. Add commands to both scripts to demonstrate the background and foreground processes (such as echo, time, process id, etc.)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!