Access Denied Your Page Is Blocked Due To A KIET IT Security Policy That Prohibits Access To Category Default

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

www.jntuworld.

com

www.jwjobs.net

CHAPTER-1 INTRODUCTION What is an O.S? O.S. is a program or software that acts as an intermediary between a user of a computer and the computer hardware. The purpose of an O.S is to provide an environment in which a user can execute programs. What the goals of an O.S? The re are two goals. 1) the primary goal of an O.S is thus to make the computer system convenient to use. 2) A secondary goal is to use the computer hard ware in an efficient manner. What are the main components of the computer system? An O.s is an important part of almost every computer system. A computer can be divided in to four components. 1) hardware 2) O.S 3) application program 4) and the users 1)hardware:the H/W contains CPU, memory and the I/O devices. The H/W provides the basic computing resources. 2)application program:it contains database systems, games and business programs. These programs use resources to solve the computing problems of the users. 3)O.S:- the O.S controls and coordinates the use of hardware among the various application programs for various users. 4)the users:what are the main functions of the O.S? 1) the O.S is similar to a government:- like a government , the O.S performs no useful function by it self. It simply provides an environment within which other programs can do useful work. 2) O.S acts as a Resource allocator:A computer system has many resources that may be required to solve a problem(cpu time, memory space, I/o devices ,file storage.). the O.S acts as the manager of these resources and allocates them to specific programs and users as necessary for task. The O.S must decide which requests are allocated resources to operate the computer system efficiently and fairly. 3)an O.S is control program:a control program controls the execution of user programs to prevent errors. Briefly explain the various types of O.S? 1) simple batch systems:Early computers were physically large machines run from a console. The common input devices were card readers and tape drivers. The common output devices were line printers, tape drives and card punches. The users of such systems did not interact directly with the computer systems. Here the user prepared a job. The job contains the program, the data and some control information about the nature of the job, and submitted it to the computer operator. The job would be in the form of the punch cards. At some time later , the out put appeared . the out put contains the result of the program.

www.jntuworld.com

www.jntuworld.com

www.jwjobs.net

To speed up of the processing , jobs with similar needs were batched together and were run through the computer as a group. The programmers would give their programs to the operator. The operator would sort programs in to batches with similar requirements, and the computer became available , would run each batch. The out put from the each job would be sent back to the appropriate programmer. A batch O.S normally reads a stream of separate jobs each with its own control cards that predefine the what the job does. When the job is complete, its output is usually printed. Disadvantages:1) the disadv of batch O.S is the lack of interaction between the user and the job while the job is executed. 2) in this execution environment the CPU is often idle. Spooling:In simple batch systems the CPU is often idle. Because the I/O devices(mechanical devices) are slower than the CPU(electronic devices). To solve this problem one method was introduced i.e spooling(simultaneous peripheral operation online) . fig Here disk technology was introduced. Instead of the cards being read from the card reader directly in to memory , cards are read directly from the card reader on to the disk. The location of the card images are recorded in a table kept by O.S. When a job is executed, the O.S satisfies its requests for card reader input by reading from the disk. Similarly when the job requests the printer to output a line, that line is copied in to a system buffer and is written to the disk. When the job is completed , the output is actually printed. This form of process is called spooling. Multiprogrammed Batch Systems:When several jobs are on a disk, the O.S select which job goes next for execution. The O.S select the jobs on the basis of FCFS. This type of selection is called job scheduling. The most important part of job scheduling is the ability to multiprogram. A single user can not keep either the cpu or I/O devices busy at all times. Multiprogramming increases CPU utilization by organizing jobs such that the CPU always has one to execute. The idea as follows. The O.S keeps several jobs in memory at a time. The O.S picks and begins to execute one of jobs in the memory. Eventually, the job may have to wait for some task, in non multi programmed system , the CPU would sit idle. In a multiprogramming system , the O.S simply switches to and executes another job. When that job needs to wait, the CPU is switches to another job, and so on. When the first job finishes waiting and gets the CPU back. As long as there is always some job to execute, the CPU will never be idle. Disadvantages:in multiprogramming environment the user can not interact with the job when it is running. Time sharing systems:Time sharing or multitasking is a logical extension of multiprogramming. Multiple jobs are executed by the CPU switching between them. But the switches occurs so frequently that the users may interact with each program while it is running.

www.jntuworld.com

www.jntuworld.com

www.jwjobs.net

An interactive computer system provides an on-line communication between the user and the system. The user gives instructions to the O.S or to a program directly, and immediately get response. A time sharing O.S uses CPU scheduling and multiprogramming to provide each user with a small portion of a time shared computer. Each user has at least one separate program in memory. A program that is loaded in to memory and is executed is called as a process. When a process executes, it typically executes for only a short time . a time shared O.S allows the many users to share the computer simultaneously. So each action or command in a time shared system tends to be short, only a little CPU time is needed for each user. A time sharing O.S are even more complex than the multiprogramming O.S. Personal computer systems:The computer systems are dedicated to the single user . such systems are called PCs. The PCs appeared in 1970. they are microcomputers ,that are considerably smaller and less expensive than main frame systems. PC O.S is neither multi user nor multi tasking. How ever , the goals of these O.S have changed with time, instead of the maximizing CPU and peripheral utilization. Parallel systems:The system contains more than one CPU is called multiprocessor systems. These CPUs shares the computer buses, the clocks, and sometimes memory and peripheral devices. These systems are referred to as tightly coupled systems. There are several reasons for making such systems. 1) increasing the through put:by increasing the no. of processors, we hope to get more work done in a shorter period of time. 2) multiprocessors can also save money compared to multiple single systems because processors can share peripherals. 3) Another reason is the increase reliability. Ex:- if we have 10 processors and suppose one is fails, then the remaining nine processors must pick up a share of the work of the failed processor. Thus the entire system runs 10% slower, rather than failing altogether. The most common multiprocessor system now use the symmetric multiprocessing model and some use asymmetric model. Symmetric multiprocessing:In which each processor runs an identical copy of the O.S, and these copies communicate with one another as needed. Asymmetric multiprocessing:- in which each processor is assigned a specific task. A master processor controls the system. The client processors look for the master processor instructions. The master processor schedules and allocates work to slave processors. Distributed systems:A recent trend in computer systems is to distribute computation among several processors. Here the processors do not share memory or clocks. Instead of that each processor has its own local memory. The processors communicate with one another through various

www.jntuworld.com

www.jntuworld.com

www.jwjobs.net

communication lines, such as high speed buses or telephone lines. These systems are usually referred as loosely coupled systems or distributed systems. The processors in a distributed systems may vary in size and function. These processors are referred to by a no. of different names, such as sites, nodes, computers and so on. Reasons for building D.S:1) resource sharing:if a no of different sites are connected to one another, then a user at one site may be able to use the resources available at another. 2) Computation speed up:- a distributed system may allow us to distribute the computation among the various sites, to run that computation concurrently. 3) Reliability.:- if one site fails in a distributed systems , the remaining sites can potentially continue operations. 4) Communication:- there are many instances in which programs need to exchange data with one another on one system. Ex:- a user send mail to another user at the same site or at a different site. Real time systems:Another type of systems is called as real time systems. The real time systems is used when there is a strict time requirement on the operation of the processor or flow of data. The real time O.S is used as control device in a dedicated application. Ex:- Medical imaging systems, industrial control systems. A real time O.S has well defined, fixed time limit. Processing must be done with in the defined limit. Or the system will fail. R.T.S are two types. Hard real time systems:- It gives guarantees that critical task complete on time . this goal requires that all system delays must be bounded. Soft real time systems:Less restrictive type of real time system is soft real time systems. Where a critical real time tasks get priority over other task, and retain that priority until it complete.

www.jntuworld.com

You might also like