Chapter 5 Flashcards

1
Q

How we denote current working directory

A

.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How to display contents of directory

A

ls

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How to make directory and remove directory in linux

A

mkdir

rmdir

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How to remove all files from current directory

A

rm *.o

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

gcc stands for what

A

group compile command

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is process

A

A program in execution. A process consists of

  • code
  • data section
  • stack
  • heap
  • environment
  • CPU state
  • Process control back
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are types of processes

A
  • 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)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are 5 states of process

A
  1. New state
  2. Ready state
  3. Run state
  4. I/O (waiting) state
  5. Terminate state
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is PCB

A
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are queues types for processing schedule

A
  • Job queue
  • Ready queue
  • Device queue
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What are job queues

A

Set of all processes in the system

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What are ready queues

A

Set of all processes residing in main memory, ready and waiting for execute

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What are device queues

A

Set of processes waiting for I/O devices

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What are types of schedulers

A
  • Long term scheduler
  • Medium term scheduler
  • Short term scheduler
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is long term scheduler

A

It takes jobs from job queue and load them into main memory.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is short term scheduler

A

It is for ready queue and call for dispatcher.

17
Q

What is medium scheduler

A

Takes job from main memory and put them in temporary memory. It is also called swapper.