Question: 1. Priority-based CPU Scheduling : Write Bash shell script code that performs two file searches sequentially. One search is aimed at finding all files with

1. Priority-based CPU Scheduling:

Write Bash shell script code that performs two file searches sequentially. One search is aimed at finding all files with extension .bin. This search should be performed via a process created via the fork-and-exec mechanism. Most importantly, the CPU scheduling priority of this process should be set to the maximum, namely this process should run with the highest priority possible. The second search is aimed at finding the location of the file master.passwd. The process performing this search should run with the lowest priority possible.

2. Controlling Excessive CPU Use :

Write Bash shell script code that displays a list of processes whose CPU usage exceeds 10%. For each process in that list, force that process to not exceed 10% of CPU usage. Have your code wait for 5 seconds, and then display the same list of processes as before. The TA will run your code to verify that none of the processes in the list exceeds 10% of CPU usage after your code has exercised the CPU usage regulation described earlier in this paragraph.

3. Inter-Process Communication:

Write Bash shell script code that displays information about active message queues and shared memory. The information should include access time, meaning the time of most recent operation on, or access to, these IPC objects.

4. Semaphores:

Write Bash shell script code that displays information about active semaphores on the system, along with their respective access time.

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 Databases Questions!