![]() |
Basics of How Operating System Works
In last article we went through History and Evaluation of Operating System where I gave an overview of operating System ad its evolution. Here I will first discuss about instruction and how it is executed.
The basic function performed by a computer is program execution. The program (to be executed) consists of a set of instructions stored in memory. Instruction processing consists of two steps.
INTERRUPTSInterrupts interrupt the normal processing of the processor. Interrupts are provided for improving the processing efficiency. Most external devices are much slower than the processor. For example, if the processor is transferring data to a printer by using the instruction cycle scheme. After each WRITE operation, the processor is to pause and remain idle until the printer catches up. Here the processor time is wasting. Classes of Interrupts
Interrupt ProcessingThe occurrence of an interrupt triggers a number of events, both in the processor hardware and in software. Two approaches for dealing with multiple interrupts are:
MEMORY HIERARCHYDesign constraints on a computer's memory
Relationships among these constraints
http://imgs.g4estatic.com/operating-system/OS5.jpg
Disk Cache A portion of main memory can be used as a buffer to temporarily hold data. It improves disk performance and minimizes processor involvement. SYSTEM COMPONENTS Create a system as large and complex as an operating system only by partitioning it into smaller pieces. Process ManagementA program does nothing unless its instructions are executed by a CPU. A process is defined as a program in execution. A process needs certain resources, including CPU time, memory, files and I/O devices to accomplish its task. Program by itself is not a process. A program is a passive entity, such as the contents of a file stored on disk. Process is an active entity, with a program counter specifying the next instruction to execute. The execution of a process progress in a sequential fashion. A process is the unit of work in a system. Some of which are operating system processes and remaining are user processes. Operating system activities in connection with Process Management
Main-memory ManagementMain-memory is a large array of words or bytes, ranging in size from hundreds of thousands to hundreds of millions. The central processor reads instructions from main-memory during the instruction-fetch cycle, and both reads and writes data from main memory during the data-fetch cycle. The I/O operations implemented via DMA also read and write data through main memory. To process data from disk, first transferred to main memory. To improve both the utilization of CPU and the speed of the computer's response, keep several programs in memory. Selection of a memory-management scheme depends on many factors. Operating system activities in memory-management
File ManagementComputers can store information on several different types of physical media, such as magnetic tape, magnetic disk, optical disk, etc. These media properties include speed, capacity, data transfer rate and access method (sequential or random). A file is a collection of related information defined by its creator. Commonly files represent programs (source and object) and data. Data files may be numeric, alphabetic or alphanumeric. Files are organized into directories to ease their use. Operating System activities in File Management
Input/Output System ManagementOperating system is to hide the peculiarities of specific hardware devices from the user, only the device driver knows the peculiarities of the specific device to which it is assigned. Operating system activities with respect to I/O sub-system
Secondary-Storage ManagementThe main purpose of a computer system is to execute programs. These programs, with the data they access must be in main memory during execution. Most programs including compilers, assemblers, sort routines, editors and formatters are stored on a disk until loaded into main memory. Operating System activities in disk management
NetworkingA distributed system is a collection of processors that do not share memory, peripheral devices or clock. Processors communicate with one another through various communication lines. Operating system activities in networking
Protection SystemIf a computer system has multiple users and allows the concurrent execution of multiple processes, then the various processes must be protected from one another's activities. Operating system activities in protecting systems
OPERATING SYSTEM SERVICESOperating system services will differ from one operating system to another. Some common classes are as follows:
These are as follows:
SYSTEM CALLSProvide the interface between a process and the operating system. These calls are generally available as assembly-language instructions and are listed in the manuals. Some systems may allow system calls to be made directly from a higher-level language (in-line). E.g., C, Bliss, BCPL, PL/360, PERL and FORTRAN To read data from one file and copy to another file. For this first input to the program is two file names (i.e., input and output files). These file names can be specified in many ways.
System calls occur in different ways, depending on the computer in use. System calls are roughly grouped into five major categories. List of system calls under each category are as follows:
I will dicuss about virtual machines and process concept in OS in next article. |
Re: Basics of How Operating System Works
Nominate this article for Article of the month - Jun 2010
|
Re: Basics of How Operating System Works
Hey,
Really great info. How to nominate this article? |
Re: Basics of How Operating System Works
Visit the link to nominate it.
|
Re: Basics of How Operating System Works
Thanks. There's a couple of things that were helpful.
Cheers. |
Re: Basics of How Operating System Works
great info man!
really nice! thanks... |
Re: Basics of How Operating System Works
Thanks for this nice article.
|
Re: Basics of How Operating System Works
nice introduction to concepts
|
Re: Basics of How Operating System Works
Wow covers all the basic news related to O.S.Great information I can say.
|
Re: Basics of How Operating System Works
Thanks a lot to share.
|
Re: Basics of How Operating System Works
It is very useful to us..You have done an great job.Such an informative and well formed post!Thank you for sharing that, it was wonderful of you.
|
Re: Basics of How Operating System Works
Nice information it covers all basics of O.S.
|
Re: Basics of How Operating System Works
Awesome posts! I really want to appreciate above posts.
|
Re: Basics of How Operating System Works
My best friend for about 13 + yrs now is ELITE ! I mess up too bad and I have no worries. BUT !!!!! I have learned more about computers here in 1 night than I have in the last 20 yrs of using a comp. THAN YOU !!!
|
| All times are GMT +5.5. The time now is 12:03. |