Csc 205 introduction to operating system Flashcards

1
Q

What is an os

A

Is a software component of a computer system responsible for the management and coordination of activities and resource sharing of the computer system

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

Show the diagram that shows the relationship between os and the computer system

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

Function of os

A

1)Memory management- it is responsible for the management and allocation of the computer primary memory
2)Device management - it is responsible for managing the computer input and output devices including the transfer of data between the devices and the cpu
3)File management - it is responsible for the organization storing and retrieving of data stored in secondary storage devices like flash drive and hard disks
4) User interface - it is responsible for the provision of a friendly user interface to allow the user to interact with the computer system efficiently
5) Security - it is responsible for protecting the computer from unauthorized access and ensuring data security and integrity
6) Processor management- it is responsible for the management and scheduling of the processor to ensure efficient utilization

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

Goals of an os

A

. Efficiency
. Reliability
. Extensibility
. Convenience
. Resource allocation
. Security

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

What are the primary structures of OS

A

1) monolithic structure
2)layered structure
3) micro kernel structure
3) modular structure

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

What is monolithic structure

A

In this structure the entire os is part of a single code base within the kernel

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

Characteristics of monolithic structures

A

1) it had high performance
2) it is less modular

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

What is the layered structure

A

It is a is structure in which the os is divided into multiple layers where each layers have specific tasks and only interacts with its adjacent layer

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

The characteristic of layered structure

A

Enhances modularity

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

What is micro kernel structure

A

Only the most essential os structure like basic memory management and inter process communication are kept In the kernel or nucleus, other services like file management and device drivers are run in the user space

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

Characteristics of micro kernel

A

1) improves stability and security as system failure in the user space does not crash the entire os
2) more IPC required

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

What is modular structure

A

Allows for the loading and unloading of os structures called modules

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

Where can modules be found

A

They can be found organized around the core kernel

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

Characteristics of modular structures

A

1) flexible and efficient
2) it is popular among systems that require flexibility and upgradability

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

Define the os kernel with diagram

A

Kernel is the core component of the computer os that serves as a bridge between the computer software ware and hardware, managing systems resources and the communication between hardware and software components

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

Function of the kernel

A

1) it provides the lowest level abstraction layer for computer resources like memory, cpu and I/o devices
2) it provides features for low level scheduling process, Interprocess communication etc
3) it provides method for synchronization
4) it provides running program with a method to make request to access these facilities

17
Q

List and explain the types of kernel

A

1) monolithic kernel - all the os are combined and stored within a single block code within the kernel
2) micro kernel - only important is structure like interprocess communication and basic memory management are stored in the kernel
3) hybrid kernel - combine elements of monolithic and micro kernel retaining high performance while isolating certain services for modularity

18
Q

Types of os

A

1) batch
2) network
3) real time
4) distributed
5) time sharing
6) mobile

19
Q

What is a process

A

A process is simply a program execution or an instance of a program being executed

20
Q

Draw a diagram of the process life cycle

A
21
Q

List and explain the process state (process life cycle)

A

1) new/ start - this is the initial state where the process is created
2) ready - the process is waiting to be assigned to a processor
3) running - once it as been assigned to the processor it takes it moves to the running stage and executes its instructions
4) waiting - the process moves to this stage if it has to wait for a resource to be available
5) termination-once the process is done with execution it moves to the termination stage so it’s lobe can be removed from the computer main momory

21
Q

What is a pcb

A

A process control block contains many pieces of information associated with a specific process

21
Q

list and explain the content of basic pcb with diagram

A

components of pcb
1)process state- current state of the process
2)program counter- indicates the address of he next instruction to be executed
3) CPU register- contains processes being executed
4) memory management information- information may include value of base and limit register, the page table and segment table depending on the memory system used
5) io status information- contains list of io devices allocated to the process ,list of open files etc

22
Q

Steps involved in process creation

A

Initialization, program Loading, memory allocation, setting up process control block, assigning process ID, set up execution context, parent-child relationship, execution, user and kernel mode transition

23
Q

Steps involved in process termination

A

Exit system call, closing files and releasing resources , Termination status, Process state change, parents process notification, resource reamation , process, table updates, child - process Clean up, Finalization

24
Q

Differences between monolithic and micro kernel structures

A

Monolithic system services run in the kernel
Less modular
Higher performance
Higher security risk

Micro kernel system
Few services run in the kernel while others run in the user space
Enhances modularity
Lower performance
Lower security risk