Chapter 5 Flashcards
How we denote current working directory
.
How to display contents of directory
ls
How to make directory and remove directory in linux
mkdir
rmdir
How to remove all files from current directory
rm *.o
gcc stands for what
group compile command
What is process
A program in execution. A process consists of
- code
- data section
- stack
- heap
- environment
- CPU state
- Process control back
What are types of processes
- I/O bound processes (spends more time doing I/O than computation e.g. print job)
- CPU bound processes (spends more time doing computation e.g. simulation)
What are 5 states of process
- New state
- Ready state
- Run state
- I/O (waiting) state
- Terminate state
What is PCB
Its a data structure for process that contain information of - Process state - Program counter - CPU register - CPU scheduling information - Memory-management information - Accounting information - I/O status information - Per process file table - Process ID - Parent process id, etc It is maintain by kernel
What are queues types for processing schedule
- Job queue
- Ready queue
- Device queue
What are job queues
Set of all processes in the system
What are ready queues
Set of all processes residing in main memory, ready and waiting for execute
What are device queues
Set of processes waiting for I/O devices
What are types of schedulers
- Long term scheduler
- Medium term scheduler
- Short term scheduler
What is long term scheduler
It takes jobs from job queue and load them into main memory.