3. Using the `ps` Command to View ProcessesHow does the `ps` command help in viewing and understanding the processes running on a Linux system? Describe the meaning of key columns such as PID, PPID, …
2. Managing Process Priorities with Nice ValuesWhat is the purpose of the nice value in Linux process management? How can you view and adjust the nice value of a process using the `ps`, `nice`, and `…
1. Understanding Process Structure and TypesExplain what a process is in the context of Linux. How does Linux differentiate between different types of processes such as parent, child, and zombie proc…
17. Setting Environment Variables with `setenv()`Explain how the `setenv()` function in C works, including its parameters and return values. Provide a code example to illustrate its usage.
18. Understanding Process Scheduling AlgorithmsWhat are the key differences between preemptive and non-preemptive scheduling algorithms in process management? Provide examples of scenarios where each…
19. Role of the Memory ManagerWhat are the primary responsibilities of the memory manager in an operating system? How does it handle virtual memory and interprocess communication?
20. Functionality of the Virtual File SystemWhat is a virtual file system (VFS) and how does it facilitate interaction between different file systems? Explain its role in handling data from network s…
15. Environment Variables in CHow can you access, set, and delete environment variables in a C program? Provide code examples for each operation using `getenv()`, `setenv()`, and `unsetenv()` functio…
14. Creating and Accessing Environment Variables in BashHow do you create and access environment variables in a bash shell? Provide examples for both operations.
10. Memory Layout of a C ProgramDescribe the memory layout of a typical C program. What are the roles of the stack, heap, uninitialized data (BSS), initialized data, and text segments?
9. Environment Variables in ProcessesWhat is the environment list in a Unix process, and how can it be accessed in a C program? Provide a code example to print all environment variables.
8. Command-Line Arguments in C ProgramsDescribe how command-line arguments are passed to a C program. What are the roles of `argc` and `argv` in the `main` function?
7. Process ID and Parent Process ID FunctionsHow can you obtain the process ID and parent process ID of a running process in a C program? Provide code examples using `getpid()` and `getppid()` functi…
6. Process Hierarchy and OwnershipExplain the concept of process hierarchy in Linux. How are parent and child processes related, and what is the significance of the parent process ID (ppid)?