Question 1s Flashcards

1
Q

List three objectives of a good scheduling policy for an operating system

A

Fairness, Efficiency and low response time

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

Distinguish high level

A

High level scheduler (HLS) is responsible for a process that need servicing into a order. As a job enters the queue it is placed in the ready to process queue.

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

Compare and contrast (FCFS) and (SJF).

A

First come first serve - Jobs are execute first come, first serve basis. It is a non-preemptive scheduling algorithm. Easy to understand. Shortest Job First This is a non-preemptive scheduling algorithm. Best approach is to minimize wait time. The processor should know in advance how much time it will take

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

What is the relationship between the low level scheduler and the dispatcher?

A

A scheduler will evaluate requirements for requests to be serviced and thus imposes an ordering.A CPU dispatcher sets up user registers, memory mapping… everything a process needs to actually run

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

How does the wait time differ from each of the algorithms FCFS and SJF

A

FCFS - P0 0-0=0 P1 5-1=4 P2 8-2=6 P3 16-3=13 Average wait = 0+4+6+13/4= 5.75 SJF - P0 3-0=3 P1 0-0=0 P2 16-2=14 P3 8-3=5 Average wait = 3+0+14+5/4 =5.50

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

What is an operating System?

A

An operating system is software that manages computer hardware and software resources that provide common services for computer programs

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

What do operating systems do?

A

An operating system has 3 main functions, manage the computer resources, establish a user interface and execute and provide services for application software .

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

What resources need to be managed by modern operating systems?

A

such as disk drives, memory and processors/cores.

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

Describe with the aid of a diagram the microkernel approach to operating system design give advantages and disadvantages

A

The microkernel approach is to define a very simple abstraction over the hardware, with a set of primitives or system calls to implement minimal OS services such as thread management, address spaces and interprocess communication. All other services, those normally provided by the kernel such as networking, are implemented in user-space programs referred to as servers. Microkernels generally underperform traditional designs, sometimes dramatically. This is due in large part to the overhead of moving in and out of the kernel, a context switch, to move data between the various applications and servers

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

Advantages/disadvantages of Microkernel

A

The architecture of this kernel is small and isolated hence it can function better. Expansion of the system is easier, it is simply added in the system application without disturbing the kernel. Unfortunately, microkernels can suffer from performance decreases due to increased system function overhead

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

Who developed the Android operating system?

A

Andy Rubin, Rich Miner, Nick Sears developed the android operating system.

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

Describe the Android operating system

A

Android is a mobile operating system developed by Google. It is based on a modified version of the Linux kernel and other open source software and is designed primarily for touchscreen mobile devices such as smartphones and tablets. The only difference is that the Android version is a bit more advanced than that of the Linux. Main reason being the android kernel consists of additional features such as the wakelocks, double-tap to unlock and other similar features embedded into the mobile operating device. Features such as wakelock are important since the kernel is going to work on a portable device and it needs to be a bit more aggressive in memory and battery management; unlike the basic linux where energy management is not an issue

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

Distingusish Medium level scheduling

A

Medium level scheduler (MLS) Is a process is in a running state and it needs one peripheral device usage, it is taken out of the Running state and put into the blocked queue. It is the job of the medium level scheduler to move a process in and out of IAS as necessary

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

Distingush low level scheduling

A

Low level scheduler(LLS) Once the process are in the IAS, the low level takes control it will select the next most appropriate process to give the CPU

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