23
1

System programs in o.s. for bca and bscit students by hardik nathani

Embed Size (px)

DESCRIPTION

SYSTEM PROGRAMS IN Operating System For B.C.A. AND B.SC.I.T. Students . By Hardik_Nathani

Citation preview

Page 1: System programs in o.s. for bca and bscit students by hardik nathani

1

Page 2: System programs in o.s. for bca and bscit students by hardik nathani

System Programs

What is system?

A system is a set of components that interact to be accomplish some common purpose.

i.e. human body, organisation.

2

Page 3: System programs in o.s. for bca and bscit students by hardik nathani

System ProgramsWhat is Operating System?

In computer an operating system is a program that acts as an intermediary between the user of a computer and the computer hardware.

In another way a mordan system is the collection of system programs.

3

Page 4: System programs in o.s. for bca and bscit students by hardik nathani

System ProgramsWhat is program?

A program is set of code that perform a specific process.

i.e. c program, visual basic program.

4

Page 5: System programs in o.s. for bca and bscit students by hardik nathani

System Programs

System programs provide a convenient environment for program development and execution.

Some of them are simply user interface to system calls ; others are considerably more complex.

Most users’ view of the operation system is defined by system programs, not the actual system calls.

5

Page 6: System programs in o.s. for bca and bscit students by hardik nathani

System ProgramsThe System program can be divided into seven parts:File manipulation Status informationFile modificationProgramming language supportProgram loading and executionCommunicationsApplication programs

6

Page 7: System programs in o.s. for bca and bscit students by hardik nathani

System Programs

System Programs Other User Applications

System Calls

Kernel

From OS’s view: system+user programs are all applications

Users (People)

7

Page 8: System programs in o.s. for bca and bscit students by hardik nathani

System CallsProgramming interface to the services

provided by the OSTypically written in a high-level language (C

or C++)Mostly accessed by programs via a high-

level Application Program Interface (API) rather than direct system call use

Three most common APIs are Win32 API for Windows, POSIX API for POSIX-based systems (including virtually all versions of UNIX, Linux, and Mac OS X), and Java API for the Java virtual machine (JVM)

8

Page 9: System programs in o.s. for bca and bscit students by hardik nathani

File ManagementWhat is File?

Collection of similar records call a file.It can be Treated as a single entity.It must Have name (file name).May restrict access.

9

Page 10: System programs in o.s. for bca and bscit students by hardik nathani

File ManagementFile management is one of the most

visible components of an operating system.

File management system consists of system utility programs that run as privileged applications.

Input to applications is by means of a file

Output is saved in a file for long-term storage

10

Page 11: System programs in o.s. for bca and bscit students by hardik nathani

File Management

File Management FunctionsIdentify and locate a selected file.Use a directory to describe the location of

all files plus their attributes.On a shared system describe user access

controlBlocking for access to filesAllocate files to free blocksManage free storage for available blocks

11

Page 12: System programs in o.s. for bca and bscit students by hardik nathani

File ManagementFile Operations

CreateDeleteOpenCloseReadWrite

12

Page 13: System programs in o.s. for bca and bscit students by hardik nathani

File ManagementTypical Operations On File

Retrieve_AllRetrieve_OneRetrieve_NextRetrieve_PreviousInsert_OneDelete_OneUpdate_OneRetrieve_Few

13

Page 14: System programs in o.s. for bca and bscit students by hardik nathani

Status informationSome programs ask the system for date,

time, amount of available, memory disk space, number of users or similar steatious information.

Typically, these programs format and print the output to the terminal or other output devices.

Some systems implement a registry - used to store and retrieve configuration information.

14

Page 15: System programs in o.s. for bca and bscit students by hardik nathani

File modification

Several text editors may also be available to create and modify the content of files stored on disk or tape.

Special commands to search contents of files or perform transformations of the text.

15

Page 16: System programs in o.s. for bca and bscit students by hardik nathani

Programming-language support

Compilers, assemblers, and interpreters for common programming languages (such as c, c++, Java, Visual Basic , and PERL) are often provided to the user with the operating system.

Some of these programs are now priced and provided seperately.

16

Page 17: System programs in o.s. for bca and bscit students by hardik nathani

Program loading and execution

Once a program is assembled or compiled , it must be loaded into memory to be executed.

The system may provided absolute loaders, relocatable loaders , linkage editors , and overlay loaders.

Debugging systems for either higher-level language are needed also.

17

Page 18: System programs in o.s. for bca and bscit students by hardik nathani

CommunicationsThese program provide the mechanism

for creating virtual connections among processes, users, and different computer systems.

Allow users to send messages to one another’s screens, browse web pages, send electronic-mail messages, log in remotely, transfer files from one machine to another.

18

Page 19: System programs in o.s. for bca and bscit students by hardik nathani

CommunicationsThere are two common models of

communication.1. Message-passing model.2. Shared-memory model.

1.Message-passing model :- In the message-passing model, information is

exchanged through an interprocess – communication facility provided by the operating system.

19

Page 20: System programs in o.s. for bca and bscit students by hardik nathani

Communications

Message-pasing Model is useful when smaller numbers of data need to be exchanged, because no conflicts need to be avoided.

It is also easier to implement than is shared memory for intercomputer communications.

20

Page 21: System programs in o.s. for bca and bscit students by hardik nathani

Communications

2.Shared-Memory model :-

In the Shared-memory model , process use map memory system calls to gain access to regions of memory owned by other memory process.

Shared-memory model allows maximum speed and convenience of communication, as it can be done at memory speeds when within a computer.

21

Page 22: System programs in o.s. for bca and bscit students by hardik nathani

Process AProcess A

Process BProcess B

KernelKernel

MM

MM

MM

22 11

a) Message-Passing a) Message-Passing modelmodel

22

Page 23: System programs in o.s. for bca and bscit students by hardik nathani

Process AProcess A

Shared MemoryShared Memory

Process BProcess B

KernelKernel

1 1

22

b) Shared-Memory Modelb) Shared-Memory Model23