Sunday, April 21, 2019
Home > Operating System > Day 3: Operating System Design

Day 3: Operating System Design

Operating System Design And Implementation- If You Are Designing Or Developing A Operating System A Start By Defining The Goals And Specifications Of The Operating System.

The Role Of Operating System Is Management Software, Operating System Allocates Resources And Also Uses Those Resources In Order To Do The Management Which Is Called As Overhead.

Operating System Is A Complex Software, The Components Of Operating System Are Memory Management, Storage Management, Process Management, Networking, Privacy & Security.

In This Topic, I’ll Explain You The Design Of Operating System.

If You Want To Develop Your Own Operating System, You Have To Understand The Services Your Operating System Provides And The Goals Of Your Operating System.

What Are Operating System Services?

User Interface

Operating System Should Provide A Fundamental Service Called User Interface Where User And Computer Interaction Occurs.

Command Line, GUI, Batch, Touchscreen Comes Under User Interface

Program Execution

Program Execution Is The Second Service Operating System Should Provide.

Operating System Should Provide The Ability For Programs To Execute On A System.

Operating System Should Allocate Memory To The Programs And Should Allow Program To Perform Their Task.

I/O Operation

An Operating System Should Provide A Way For Devices To Be Connected For Input To Be Put For The Processes And Output To The Be Put To Come Back From The Processes.

Output Should Come On To The Screen Or Into A File Or Into A Buffer Etc.

File System Manipulation

An Operating Should Provide A Service To Manipulate Files, Creating Directories, Creating Files, Open Files, Close Files, Save Files, Read From Files Etc.

Communications

a) Message Passing

b) Shared Memory 

The Next Service Is Communications, One Of The Roles Of Operating System Is To Allocate Resource For The Process, One Of Those Resources Is Memory, So The Goals Of An Operating System Is To Keep Processes Out Of Each Other Space And Keep Them Safe From Each Other And If System Calls To Access The Memory And Allocate The Memory And Provide Communications Between The Processes.

So In That Way, The Processes Would Be Using Message Passing In Order To Communicate That Would Mean That The Operating System Would Be Involved In The Communication Between The Processes.

Sometimes The Operating System May Choose To Remove This Restriction And Allow Processes To Share Memory,

So The Two Basic Ways That Communication Can Happen Is Either By Message Passing Which The Processes Communicate By Putting The Messages Into A Location Using Send And Receive Primitives Or By Removing The Restriction That Processes Cannot Access The Memory Space Among The Other Processes And Allow Them To View Shared Memory.

Error Detection 

Operating System Should Provide A Way To Detect The Error Had Happened Find How To Recover From It, Lang Information About It, But There Should Be A Way To Deal With Error That Occurs In A Computer System.

Ensure Efficient Operation

Other Operating System Service Is That Ensure Efficient Operation Include Allocating The

Resource Allocation

Accounting,

Protection And Security.

Operating System Needs To Allocate The Resources For The Processes And There Are Limited Number Of Resources And Also Operating System Needs To Use These Resources.

Accounting Means Keep In Track The Processes Did What And Keeping Track Of Users And All Kinds Of Information That Is Logged And Kept Track Up In Order To Perform Updates.

Protection And Security – Protection Involves Ensuring That All Access To System Resources Is Controlled. Security Of The System From Outsiders Requires User Authentication, Extends To Defending External I/O Devices From Invalid Access Attempts.

Without Protection And Security, The Operating System Will Not Run Efficiently.

Policy vs Mechanism 

Because The Operating System Is A Software There Is A Separation Between Policy And Mechanism.

Anytime When You Are Developing A Software Or When You Are Designing A Software There Are Decision That To Be Made.

  1. Policy(WHAT) – What Kind Of Things Would You Like To Happen In Your System, What Kind Of Things Which Your Software Do, What Your Software Does And What Your Software Want To Do, These Are Policies. Once You Take Decisions About Some Policies Then You Can Use The Mechanism 
  2. Mechanism(HOW) – The Mechanism Is How, How The Implementation Or The Roles That Govern The Policy.

Policy And Mechanism Is Must For Any Type Of Software Not Only For Operating System Software.

 

Designing And Implementing Operating System

1) Start By Defining Goals And Specifications

2) Goals And Specifications Of Operating Depends Of The Choice Of Hardware And Type OF System.

3) User Goals And System Goals

USER GOALS – Operating System Should Be Convenient To Use, Easy To Learn, Reliable, Safe And Fast.

SYSTEM GOALS – Operating System Should Be Easy To Design, Implement, And Maintain, As Well As Flexible, Reliable, Error-Free And Efficient.

 

 

 

One thought on “Day 3: Operating System Design

  1. obviously like your website but you need to check the spelling on quite a few of your posts. A number of them are rife with spelling issues and I find it very bothersome to tell the truth nevertheless I’ll surely come back again.

Leave a Reply