An open API service indexing awesome lists of open source software.

https://github.com/jonrohan/kernelstate

You will write a program to use the /proc mechanism to inspect various kernel values that reflect the machine’s load average, process resource utilization, and so on. Please compile and run it on Linux.
https://github.com/jonrohan/kernelstate

Last synced: 7 months ago
JSON representation

You will write a program to use the /proc mechanism to inspect various kernel values that reflect the machine’s load average, process resource utilization, and so on. Please compile and run it on Linux.

Awesome Lists containing this project

README

          

# Inspecting Linux Kernel State

## Description of logic:
The program tells the user about various states of the emulated Linux Kernel State. The user can specify whether they want the short format which only gives a little information, or the long format which gives more information on the kernel state. To accomplish this I created a function for each aspect of the project and in the main method had a switch case to check the user input. Once I found the location of all the important files, I just used simple string parsing to obtain the correct info.