Operating System Part 1
Operating System Part 1
Kinnari Prakashan
Visit - www.tpspoint.com
i) The primary aim of the operating system is to make the hardware convenient to
use.
ii) To help users to execute programs.
iii) To control execution of program to prevent errors and improper use of computer
system.
iv) To make provision for security of information to users .
vi) It provides facility to share the same hardware among the users.
Ans : The O.S. divides its services in the following three main areas :
ii) PM : The services provided under process management are directed to keep
track of all running programs, called processes. In multiuser operating systems,
number of users located
at different terminals may execute different programs at a time. In such case
operating system keeps track of all processes. It schedules them and dispatches
them one after another.
iii) MM : The services in Memory Management keep track the of all memory
locations. They determine memory allocation policy and use various techniques and
algorithms to achieve this.
2) These system services manage the organization of information into files and
directories by allocating memory space to them.
3) It also ensures that correct programs have access to information, have occupied
memory space and driving various devices.
i) Create a file.
ii) Create a directory.
iii) Open a file for read/write purposes.
iv) Explore a directory.
v) Close a file.
vi) Read data from file to buffer.
vii) Write data from buffer to file.
viii) Move file pointer.
ix) Create a link.
x) Change working directory.
2) But such a computer system has only one C.P.U. and it can execute only one
instruction,
belonging to any one of these programs at the same time.
3) The Process Management of such O. S. keeps track of all running programs called
processes, Schedule then and dispatch them one after the another. While doing so,
it
gives an impression to each user that it has the full control of C.P.U.
4) The Process Management modules of single user O.S. are less complicated than
multi-user O.S.
i) Read a process.
ii) Block a process.
li) Resume a process.
iv) Terminate a process.
v) Suspend a process.
vi) Delay a process.
vii) Change the priority of a process
viii) Generate a process.
2) But before loading it in memory, it should know that how much of free memory is
available
and how much of memory should be allocated to the job.
3) For this, the operating system keeps list of all free memory location. Before a
program is
loaded in memory the operating system consults with this list. It loads the program
into
memory and modifies the list.
5) For this, the O.S. determines memory allocation/deallocation policies and uses
various
techniques and algorithms to athieve this.
Ans: 1) System call : System call provides the interface between a process and the
operating system. These calls are generally available as assembly language
instructions.
2) System calls are used in different ways as :
(a) Some system may allow system calls to be made directly from a higher level
language
program. In this, calls are predefined function or subroutine.
(b) Some languages — C, PERL – allow system calls to be made directly.
(c) FORTRAN system provides set of library routines.
Important Links
Operating System Part -1
Computer Science 1
1. Operating System
2. Data Structures
3. C++
4. HTML
Computer Science 2
1. Introduction to Microprocessors and organisation of 8085
3. Introduction of Microcontroller
4. Networking Technology