Operating Systems Processes Flashcards
What are operating system services?
They provide an environment for execution of programs.
Example of a system call?
fork(), exec(), wait(), exit()
What is a process?
An instance of a program in execution.
Define process control block (PCB).
Data structure containing process info like state, ID, registers.
What are system programs?
Programs that provide basic non-kernel functionalities.
Purpose of system programs?
Support system operation like file manipulation, status info.
Example of process state?
Ready, Running, Waiting, Terminated.
Name a service related to I/O operations.
Providing a uniform interface for device communication.
What OS service handles errors?
Error detection – ensures system integrity by monitoring and responding to errors.
Which OS service is responsible for program execution?
Loads programs into memory and runs them.
What is the purpose of a communication service in OS?
Allows processes to exchange information, often using messages or shared memory.
What does resource allocation service do?
Allocates and tracks CPU, memory, and I/O resources.
How does an OS ensure security?
By restricting access and protecting data from unauthorized users.
What does mkdir do in Linux?
Creates a new directory.
What does rm -r do?
Deletes a directory and all its contents.
What is the purpose of ls?
Lists files and directories.
What does cd do?
Changes the current directory.
What does cp do?
Copies files or directories.
What is the mv command used for?
Moves or renames files or directories.
What does touch do?
Creates an empty file or updates a file’s timestamp.
What does cat do?
Displays the contents of a file.
What does kill do?
Terminates a process using its PID.
What is top used for?
Displays running processes and system usage.